Support escaped runfile paths#3910
Conversation
54b3d78 to
14e2fae
Compare
|
Rebased: 54b3d78a9 -> 14e2faeb9 |
|
CI fails for |
|
Seems like you unfortunately hit bazelbuild/continuous-integration#1838 If you run |
|
Coverage succeeds locally. |
|
I opened bazelbuild/continuous-integration#2508 but in the mean time you could update the presubmit file for this job to add |
54cba5f to
14e2fae
Compare
Add support for spaces, newlines and backslashes in paths written to the runfiles MANIFEST file.
945e638 to
97481c5
Compare
UebelAndre
left a comment
There was a problem hiding this comment.
Thanks! Just one request!
rust/runfiles/runfiles.rs
Outdated
| .ok_or(RunfilesError::RunfilesManifestInvalidFormat)?; | ||
| Ok::<(PathBuf, PathBuf), RunfilesError>((pair.0.into(), pair.1.into())) | ||
| let pair = if line.starts_with(' ') { | ||
| // Unescape according to src/main/java/com/google/devtools/build/lib/analysis/SourceManifestAction.java. |
There was a problem hiding this comment.
Can you leave a link with a commit hash in it so the context isn't invalidated by upstream changes when folks go to look this up?
| // Unescape according to src/main/java/com/google/devtools/build/lib/analysis/SourceManifestAction.java. | |
| // Unescape according to SourceManifestAction.java | |
| // https://github.com/bazelbuild/bazel/blob/5b3e143adf7ccf40b05f73b0711f60f1ceade180/src/main/java/com/google/devtools/build/lib/analysis/SourceManifestAction.java |
There was a problem hiding this comment.
I choose a link with line numbers as well. Thank you for the review!
8479325 to
97481c5
Compare
|
Looks like CI failed with a network flake 😞 If you push a new commit (e.g. |
4dedc4b to
642ecb3
Compare
Add support for spaces, newlines and backslashes in paths written to the runfiles MANIFEST file.