cachix / cachix-action

Build software only once and put it in a global cache

Home Page:https://cachix.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can no longer install cachix

danwdart opened this issue · comments

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

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.

Ah thanks, this is just what the docs told me to use, but sure, I'll try that, thanks

commented

Upgrading to v20 also fixes the docs, which use v19 and break as-is: https://devenv.sh/integrations/github-actions/

Looks like this is fine for me.