Skip to content
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

Closed
wants to merge 4 commits into from

Conversation

thesayyn
Copy link
Contributor

@thesayyn thesayyn commented Feb 8, 2024

Fixes #20891

@github-actions github-actions bot added the awaiting-review PR is awaiting review from an assigned reviewer label Feb 8, 2024
@thesayyn
Copy link
Contributor Author

thesayyn commented Feb 8, 2024

cc @tjgq @comius

@iancha1992 iancha1992 added the team-Rules-API API for writing rules/aspects: providers, runfiles, actions, artifacts label Feb 9, 2024
@comius comius requested a review from tjgq February 9, 2024 07:09
@comius
Copy link
Contributor

comius commented Feb 9, 2024

cc @tjgq @comius

Thanks. I believe @tjgq is more qualified reviewer in this case.

Copy link
Contributor

@tjgq tjgq left a 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.

@tjgq tjgq assigned tjgq and unassigned tjgq Feb 9, 2024
@tjgq tjgq added awaiting-user-response Awaiting a response from the author and removed awaiting-review PR is awaiting review from an assigned reviewer labels Feb 9, 2024
@tjgq
Copy link
Contributor

tjgq commented Feb 14, 2024

df07d27 touched some code around this area, so you'll have to rebase your PR.

@thesayyn
Copy link
Contributor Author

All right. I'll get to it soon hopefully.

@thesayyn
Copy link
Contributor Author

@tjgq dangling symlinks isn't seem to be supported anymore. is that expected? i get tests failing with "is a dangling symbolic link"

@thesayyn
Copy link
Contributor Author

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.

@thesayyn thesayyn requested a review from tjgq February 20, 2024 05:46
@thesayyn
Copy link
Contributor Author

@tjgq Ready for another pass.

@tjgq
Copy link
Contributor

tjgq commented Feb 20, 2024

@bazel-io fork 7.1.0

bazel-io pushed a commit to bazel-io/bazel that referenced this pull request Feb 21, 2024
…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
github-merge-queue bot pushed a commit that referenced this pull request Feb 21, 2024
…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 <thesayyn@gmail.com>
meteorcloudy pushed a commit to bazel-contrib/bazel_features that referenced this pull request Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-user-response Awaiting a response from the author team-Rules-API API for writing rules/aspects: providers, runfiles, actions, artifacts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support symbolic links inside TreeArtifact to point out of the TreeArtifact
4 participants