-
Notifications
You must be signed in to change notification settings - Fork 882
fix(nix): skip duplicate cldr download to fix build on darwin and improve reproducibility #4763
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
fix(nix): skip duplicate cldr download to fix build on darwin and improve reproducibility #4763
Conversation
…rove reproducibility fixes: #4761
✅ Deploy Preview for teslamate ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Setting the env variable like this does not solve the issue, as it is too late in mixRelease |
nix/flake-modules/package.nix
Outdated
| ; | ||
|
|
||
| # set the environment variables for the build | ||
| MIX_ENV = "prod"; # build for production |
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.
Not sure if we should explicitly set it, as we use the package module in our devenv as well, innit?
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.
The devenv environment won't be used during package builds.
|
Am I bit unclear, is this still not working? Anyway, docs have: I think this makes in clear that mixEnv="prod" is the default. And not sure I entirely understand, but it suggests |
It's working, it needed to be |
I just tested moving the Env Variable into the fetchMixDeps, but the build failed with a permission denied error. This PR resolves that issue. |
|
The only thing here I am not sure of is setting |
…it defaults to prod
I agree, my bad, and I've removed it. |
fixes: #4761