Skip to content

Conversation

@JakobLichterfeld
Copy link
Member

fixes: #4761

@netlify
Copy link

netlify bot commented May 26, 2025

Deploy Preview for teslamate ready!

Name Link
🔨 Latest commit ac73bab
🔍 Latest deploy log https://app.netlify.com/projects/teslamate/deploys/683810c69ca83f000835c928
😎 Deploy Preview https://deploy-preview-4763--teslamate.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@JakobLichterfeld JakobLichterfeld added the kind:bug Something isn't working label May 26, 2025
@JakobLichterfeld JakobLichterfeld marked this pull request as draft May 26, 2025 15:16
@JakobLichterfeld
Copy link
Member Author

Setting the env variable like this does not solve the issue, as it is too late in mixRelease

@JakobLichterfeld JakobLichterfeld marked this pull request as ready for review May 26, 2025 17:14
@JakobLichterfeld JakobLichterfeld requested a review from brianmay May 26, 2025 17:14
;

# set the environment variables for the build
MIX_ENV = "prod"; # build for production
Copy link
Member Author

@JakobLichterfeld JakobLichterfeld May 26, 2025

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?

Copy link
Collaborator

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.

@brianmay
Copy link
Collaborator

Am I bit unclear, is this still not working?

Anyway, docs have:

  # if using mix2nix you can use the mixNixDeps attribute
  mixFodDeps = packages.fetchMixDeps {
    pname = "mix-deps-${pname}";
    inherit src version;
    # nix will complain and tell you the right value to replace this with
    hash = lib.fakeHash;
    mixEnv = ""; # default is "prod", when empty includes all dependencies, such as "dev", "test".
    # if you have build time environment variables add them here
    MY_ENV_VAR = "my_value";
  };

I think this makes in clear that mixEnv="prod" is the default.

And not sure I entirely understand, but it suggests SKIP_LOCALE_DOWNLOAD should be set inside the fetchMixDeps block. If this was still not working, that might be the solution.

@JakobLichterfeld
Copy link
Member Author

Am I bit unclear, is this still not working?

It's working, it needed to be "true"

@JakobLichterfeld
Copy link
Member Author

JakobLichterfeld commented May 28, 2025

And not sure I entirely understand, but it suggests SKIP_LOCALE_DOWNLOAD should be set inside the fetchMixDeps block

I just tested moving the Env Variable into the fetchMixDeps, but the build failed with a permission denied error. This PR resolves that issue.

@brianmay
Copy link
Collaborator

The only thing here I am not sure of is setting MIX_ENV explicitly to prod, I think mixEnv is the required setting, and it already defaults to prod anyway.

@JakobLichterfeld
Copy link
Member Author

The only thing here I am not sure of is setting MIX_ENV explicitly to prod, I think mixEnv is the required setting, and it already defaults to prod anyway.

I agree, my bad, and I've removed it.

@JakobLichterfeld JakobLichterfeld merged commit f2c9179 into main May 30, 2025
24 checks passed
@JakobLichterfeld JakobLichterfeld deleted the nix-darwin-skip-duplicate-cldr-download branch May 30, 2025 06:44
@JakobLichterfeld JakobLichterfeld added this to the v2.1.0 milestone Jul 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind:bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nix(darwin): cldr download/build fails

3 participants