-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: allow relative symlinks that points out of the treeartifact #21263
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM generally, but let's leave some tests in place to catch regressions.
src/test/java/com/google/devtools/build/lib/skyframe/TreeArtifactValueTest.java
Outdated
Show resolved
Hide resolved
src/test/java/com/google/devtools/build/lib/skyframe/TreeArtifactBuildTest.java
Outdated
Show resolved
Hide resolved
df07d27 touched some code around this area, so you'll have to rebase your PR. |
All right. I'll get to it soon hopefully. |
4622cb1
to
dde13d9
Compare
@tjgq dangling symlinks isn't seem to be supported anymore. is that expected? i get tests failing with "is a dangling symbolic link" |
Also would it be possible to cherry pick this into 7.1.0? We'd like to start rolling this out with rules_oci as soon as we can. |
@tjgq Ready for another pass. |
@bazel-io fork 7.1.0 |
A feature gate for bazelbuild/bazel#21263
…not point outside the tree. As discussed in bazelbuild#20891, the restriction is pointless, as it can already be bypassed with an absolute symlink. Note that the symlinks are still required not to dangle in all cases. Also rename and reorganize the tests in TreeArtifactBuildTest in a more logical manner. Fixes bazelbuild#20891. Closes bazelbuild#21263. PiperOrigin-RevId: 608926604 Change-Id: I967a383b9891360700f868abd5c2d292e0e7974e
…act may not point outside the tree. (#21449) As discussed in #20891, the restriction is pointless, as it can already be bypassed with an absolute symlink. Note that the symlinks are still required not to dangle in all cases. Also rename and reorganize the tests in TreeArtifactBuildTest in a more logical manner. Fixes #20891. Closes #21263. Commit 5506a0f PiperOrigin-RevId: 608926604 Change-Id: I967a383b9891360700f868abd5c2d292e0e7974e Co-authored-by: thesayyn <[email protected]>
Fixes #20891