nix-community / nur-packages-template

A template for NUR repositories: [maintainer=@fgaz]
MIT License
108 stars 104 forks source link

CI fails #94

Closed bbjubjub2494 closed 3 months ago

bbjubjub2494 commented 3 months ago

The Github actions now fail with

warning: Nix search path entry 'channel:nixpkgs-unstable' cannot be downloaded, ignoring
error:
       … while calling the 'import' builtin
         at «string»:1:2:
            1| (import <nixpkgs> {}).lib.version
             |  ^

       … while realising the context of a path

       … while calling the 'findFile' builtin
         at «string»:1:9:
            1| (import <nixpkgs> {}).lib.version
             |         ^

       error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I)

Here is a fresh repository showing the issue: https://github.com/bbjubjub2494/nur_template_test/actions/runs/9363137315/job/25773257833

We have scheduled builds and they stopped failing 3 days ago with no commit on our side: https://github.com/Red-Flake/packages/actions. The version of nix is 2.22.1 in both cases. Something changed in the ambient inputs but I have no idea what.

Mic92 commented 3 months ago

I noticed that as well. I cannot reproduce it locally though nix-shell -I nixpkgs=channel:nixos-unstable -p hello with the same nix version.

Mic92 commented 3 months ago

fixed in https://github.com/nix-community/nur-packages-template/pull/95