Can no longer install cachix
danwdart opened this issue · comments
Dan Dart commented
Hello, maybe 2 days ago cachix now fails to install in actions:
3s
Run cachix/cachix-action@v11
with:
name: dandart
authToken: ***
env:
NIX_PATH: nixpkgs=channel:nixos-unstable
Warning: The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Cachix: installing
/usr/bin/bash -c nix-env --quiet -j8 -iA cachix -f https://cachix.org/api/v1/install
Cachix: checking version
Error: Action failed with error: Error: Unable to locate executable file: cachix. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.
Anyone know anything about this?
Thanks
Domen Kožar commented
there was cachix/install-nix-action#161 with cachix/install-nix-action and a new release of Nix. Please upgrade to cachix/install-nix-action@v20.
Dan Dart commented
Ah thanks, this is just what the docs told me to use, but sure, I'll try that, thanks
Harmen commented
Upgrading to v20 also fixes the docs, which use v19 and break as-is: https://devenv.sh/integrations/github-actions/
Domen Kožar commented
Thanks, fixed in cachix/devenv@f471d8a
Dan Dart commented
Looks like this is fine for me.