Repository navigation
feat: directory.WithSymlink - #10435
Merged
Merged
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
jedevc
reviewed
May 20, 2025
alexcb
force-pushed
the
with-symlink
branch
4 times, most recently
from
May 26, 2025 23:58
a80c464 to
4311c8a
Compare
alexcb
commented
May 27, 2025
| // NB(vito): iterate in reverse order so we'll find deeper mounts first | ||
| for i := len(container.Mounts) - 1; i >= 0; i-- { | ||
| mnt := container.Mounts[i] | ||
| mnt := &container.Mounts[i] |
Contributor
Author
There was a problem hiding this comment.
note that this change was needed to allow mount.Result = newDir.Result to be set in container.WithSymlink
Contributor
Author
There was a problem hiding this comment.
This change is no longer needed since we're going to add a replaceMount call.
I'm not sure if we really want it to return a pointer to the actual data, to allow modifications, especially if there's no current use-case.
jedevc
reviewed
May 27, 2025
alexcb
force-pushed
the
with-symlink
branch
2 times, most recently
from
June 2, 2025 16:47
0bc923b to
8c8a1bd
Compare
alexcb
commented
Jun 2, 2025
jedevc
reviewed
Jun 3, 2025
jedevc
reviewed
Jun 3, 2025
jedevc
approved these changes
Jun 3, 2025
jedevc
left a comment
Contributor
There was a problem hiding this comment.
Left a couple nitpicky comments, but generally LGTM!
Will give you a chance to look over them, but won't block merging on them 😁
alexcb
force-pushed
the
with-symlink
branch
2 times, most recently
from
June 3, 2025 18:55
aca4922 to
6063a09
Compare
sipsma
reviewed
Jun 3, 2025
sipsma
reviewed
Jun 3, 2025
Adds a new WithSymlink method to the dagger API for both containers and directories. See dagger#8484 for details. Signed-off-by: Alex Couture-Beil <[email protected]>
Signed-off-by: Alex Couture-Beil <[email protected]>
Signed-off-by: Alex Couture-Beil <[email protected]>
reuse the connection used in TestSymlinkCaching to prevent prunning from occuring while the test is running. Signed-off-by: Alex Couture-Beil <[email protected]>
Signed-off-by: Alex Couture-Beil <[email protected]>
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a new WithSymlink method to the dagger API for both containers and directories.
See #8484 for details.