-
Notifications
You must be signed in to change notification settings - Fork 90
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
dontStrip = true
increases the closure size by leaving references to build utils
#428
Comments
I believe nixpkgs has a The only assumptions we currently make is removing references to the sources we've vendored (which should be mostly safe since Rust projects usually don't rely on being able to find their own sources to things). It would be a lot riskier to try to remove references to something like Definitely wouldn't mind documenting this though! |
Conceivably you could |
We only need to call it on the resulting binaries no? At least with |
Yeah, just on resulting binaries I think. But |
Couple of thoughts: Regarding efficient Regarding behavior when (e.g. How would we actually know that a build input isn't actually a dylib we need at runtime? Questions like that are really easy to answer at the context of a specific project, but really hard for us to make assumptions about here, which is why I lean towards having the actual project opt into what happens if |
Yeah I definitely agree that crane shouldn't do anything here by default. My thinking was that we could extend the removeVendoredSources functionality to remove other manually specified references as well. I know you can already do this, but not in a single pass. Though upstreaming the optimized solution to nixpkgs probably makes more sense now that you mention it. |
From the original report
by @simonzkl
I think it's worth promoting to a separate issue.
The text was updated successfully, but these errors were encountered: