Skip to content
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

experimental-features = configurable-impure-env doesn't work since 0.33 with extra-conf #1390

Closed
OlivierLDff opened this issue Jan 15, 2025 · 4 comments · Fixed by #1393
Closed
Milestone

Comments

@OlivierLDff
Copy link

OlivierLDff commented Jan 15, 2025

Hi, my CI broke with the release 0.33, I guess this is related to #1379.

Here is my action:

    -
      uses: naostage/nix-installer-action@dea7810afd9d4c98556c8ec68cf361bd5b648eaa
      with:
        extra-conf: |
          experimental-features = configurable-impure-env
          impure-env = NIX_GITHUB_PRIVATE_USERNAME=x-auth-token NIX_GITHUB_PRIVATE_PASSWORD=${{ steps.generate_token.outputs.token }}

And when running nix build I get:

warning: Ignoring setting 'impure-env' because experimental feature 'configurable-impure-env' is not enabled

Current workaround, pin the source tag (that I should have done in the first place)

    -
      uses: naostage/nix-installer-action@dea7810afd9d4c98556c8ec68cf361bd5b648eaa
      with:
        source-tag: v0.32.3
        extra-conf: |
          experimental-features = configurable-impure-env
          impure-env = NIX_GITHUB_PRIVATE_USERNAME=x-auth-token NIX_GITHUB_PRIVATE_PASSWORD=${{ steps.generate_token.outputs.token }}

I guess this is the same issue as #1389

@OlivierLDff OlivierLDff changed the title experimental-features = configurable-impure-env` experimental-features = configurable-impure-env` doesn't work since https://github.com/DeterminateSystems/nix-installer/pull/1379 Jan 15, 2025
@OlivierLDff OlivierLDff changed the title experimental-features = configurable-impure-env` doesn't work since https://github.com/DeterminateSystems/nix-installer/pull/1379 experimental-features = configurable-impure-env` doesn't work since 0.33 Jan 15, 2025
@OlivierLDff OlivierLDff changed the title experimental-features = configurable-impure-env` doesn't work since 0.33 experimental-features = configurable-impure-env doesn't work since 0.33 with extra-conf Jan 15, 2025
@grahamc
Copy link
Member

grahamc commented Jan 15, 2025

Thank you, we're rolling back 100% while we fix this.

@grahamc
Copy link
Member

grahamc commented Jan 15, 2025

Thanks, @OlivierLDff! This is actually a different issue than #1389, which is an issue with how Cachix parses the nix.conf. This issue is due to the order we set the options. We used to explicitly merge the user-specified experimental-features with our internal list. That PR unintentionally changed that behavior, which we're resolving for the next release.

We're about to do two things:

  1. Make it so the user-specified experimental-features are turned into extra-experimental-features to make sure they merge,
  2. Include the nix.custom.conf at the end, so user configuration takes priority.

With these two pieces, your use case will be restored.

Thank you for reporting the issue. I'm sorry for the oversight!

@grahamc
Copy link
Member

grahamc commented Jan 16, 2025

Hey @OlivierLDff, just wanted to share that Determinate Nix Installer v0.34.0 is out, and rolled out to 30% of users. It should not have the problem you described here. Let me know what you see!

@OlivierLDff
Copy link
Author

I can confirm this works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants