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
dockerTools: optionally preserve directory symlinks #25148
Conversation
In some cases, this seems to save a lot (>40%) of space.
@ryantrinkle, thanks for your PR! By analyzing the history of the files in this pull request, we identified @adnelson, @lethalman and @timclassic to be potential reviewers. |
@lethalman It would be great to get your input on this. I can't say I fully understand the implications of the -k parameter here, but I did do some testing without it and my image, at least, seemed to work just fine (and was much smaller). This patch should, however, preserve the existing behavior by default. |
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.
Should we preserve the existing behaviour? What's the purpose?
@puffnfresh I believe this does preserve existing behavior? |
@Ericson2314 yeah, but why? |
@puffnfresh I think certain setup scripts might depend on the existing behavior; plus, I don't totally understand the benefit of the existing behavior, but it looks like it was intentional, so I didn't want to mess with it. It does look like the |
@puffnfresh I think it may be best to just merge this with the backwards compatibility in place. I don't personally feel that I understand this code well enough to warrant hitting people downstream with substantive changes, even though I do agree that the old behavior is probably wrong. In the future, if we want to change the default behavior to be this behavior, it will be very easy. |
ping on this, just built an image that had essentially two copies of everything. This solves my mystery :D |
Any updates on this? |
@ryantrinkle While i've been using dockerTools several times i am somehow drawing a mental blank on this one.
|
Any updates? |
@gilligan Those are very good points; I'm going to go ahead and merge, though, so that people can at least start using this if they want to. I agree that we probably don't need to keep the old way (my guess is that it was actually a typo), so perhaps if enough people start using this, we can just eliminate the old way. |
In some cases, this seems to save a lot (>40%) of space.
Motivation for this change
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)