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

Cachix unable to write to the nix store

notquiteamonad opened this issue · comments

The following error is produced:

Run cachix/cachix-action@v10
  with:
    name: cachix-action
  env:
    NIX_PATH: nixpkgs=channel:nixos-unstable
Cachix: installing
  /usr/bin/bash -c nix-env --quiet -j8 -iA cachix -f https://cachix.org/api/v1/install
  error: path '/nix/store/q0lqpbbxcn2y4f23nhms7ncj7gvwbid1-cachix-0.6.0' does not exist and cannot be created
  Error: Action failed with error: Error: The process '/usr/bin/bash' failed with exit code 1

I've created a minimal reproducible example repo which fails when it uses the cachix action

That's because you have disabled https://cache.nixos.org :) That's one of the reasons why Cachix exists to avoid such errors.

See https://github.com/cachix/install-nix-action#how-do-i-add-a-binary-cache

Ah, thanks. I hadn't understood that the two were mutually exclusive. I've updated my example repo to use the correct caches for the benefit of anyone else finding this ticket. Cheers!