diff options
| author | Michael Hoang <enzime@users.noreply.github.com> | 2024-11-19 12:54:51 +1100 |
|---|---|---|
| committer | Michael Hoang <enzime@users.noreply.github.com> | 2024-11-21 11:07:47 +1100 |
| commit | d57e74864bccd31e081443733bfaee1eda85a242 (patch) | |
| tree | ec0031cccc59aa9aefe460aca1ef3e975133b95b /.github | |
| parent | 2ca27ba780bb072e9fb80565684ad81c2664f9d0 (diff) | |
uninstaller: always specify `--extra-experimental-features` first
See https://github.com/NixOS/nix/issues/11891
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/test.yml | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6e06117..c531aa5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -74,12 +74,14 @@ jobs: hello - name: Test uninstallation of nix-darwin run: | + # We need to specify `--extra-experimental-features` because `experimental-features` is set by + # `cachix/install-nix-action` but not by our default config above nix run .#darwin-uninstaller \ - --override-input nixpkgs nixpkgs/${{ env.CURRENT_STABLE_CHANNEL }} \ - --extra-experimental-features "nix-command flakes" + --extra-experimental-features "nix-command flakes" \ + --override-input nixpkgs nixpkgs/${{ env.CURRENT_STABLE_CHANNEL }} nix run .#darwin-uninstaller.tests.uninstaller \ - --override-input nixpkgs nixpkgs/${{ env.CURRENT_STABLE_CHANNEL }} \ - --extra-experimental-features "nix-command flakes" + --extra-experimental-features "nix-command flakes" \ + --override-input nixpkgs nixpkgs/${{ env.CURRENT_STABLE_CHANNEL }} - name: Debugging tmate session if: ${{ failure() }} uses: mxschmitt/action-tmate@v3 @@ -130,7 +132,8 @@ jobs: hello - name: Test uninstallation of nix-darwin run: | - # A regression in Nix 2.19 means we need to put `--extra-experimental-features` before `--override-input` + # We need to specify `--extra-experimental-features` because `experimental-features` is set by + # `cachix/install-nix-action` but not by our default config above nix run .#darwin-uninstaller \ --extra-experimental-features "nix-command flakes" \ --override-input nixpkgs nixpkgs/nixpkgs-unstable |
