Skip to content

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

@OlivierLDff

Description

@OlivierLDff

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions