nixbuild / nix-quick-install-action

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How do you use this without flakes?

anka-213 opened this issue · comments

I get this error when I try using the latest version without flakes:

Run nixbuild/nix-quick-install-action@v25
Run /home/runner/work/_actions/nixbuild/nix-quick-install-action/v25/nix-quick-install.sh
/*stdin*\           : 8[7](https://github.com/anka-213/gf-lsp/actions/runs/5858046239/job/15881637273#step:3:8)746560 bytes 
installing 'nix-2.16.1'
building '/nix/store/yx8dlip6m5lb4s9pl0693abpsalr78ga-user-environment.drv'...
Run /home/runner/work/_actions/nixbuild/nix-quick-install-action/v25/read-nix-config-from-flake.sh
+ jq -r '.content|gsub("[\n\t]"; "")|@base64d'
+ gh api -H 'Accept: application/vnd.github+json' -H 'X-GitHub-Api-Version: [20](https://github.com/anka-213/gf-lsp/actions/runs/5858046239/job/15881637273#step:3:22)22-11-28' '/repos/anka-213/gf-lsp/contents/flake.nix?ref=f60fce4a36646e06b70[31](https://github.com/anka-213/gf-lsp/actions/runs/5858046239/job/15881637273#step:3:34)fa48fb2ab16cebf2074'
gh: Not Found (HTTP 404)
jq: error (at <stdin>:0): null (null) cannot be matched, as it is not a string

Here's the full log: https://github.com/anka-213/gf-lsp/actions/runs/5858267269/job/15881863895

Hmm, this looks bad, thanks for reporting it. Can you work around it by setting load_nixConfig to false?

I see. At the point of hitting this error, we probably have at least a config drift, but we could fail much more gracefully.

Wdyt?

Hmm, this looks bad, thanks for reporting it. Can you work around it by setting load_nixConfig to false?

Tried this too, doesn't help

Any suggestions?

Hello, I'm hitting the same issue here.

I'd love to be able to use nix-quick-install-action in order to leverage cache-nix-action, which seems to require this specific package to work.

@jgoux Could you try using the latest revision (nix-quick-install-action@master)? I just committed a couple of fixes. It would be ideal if you could try it out both with load_nixConfig set to false and true.

@rickynils I just tried against nix-quick-install-action@master, it seems to work with the option load_nixConfig set to false. I tried true and got the same error as before. 👍

Thanks for the reactivity!

@jgoux Thanks! Is it possible for me to see the output from the true case? Was it the exact same error as before?

@jgoux Would you mind re-running that workflow with load_nixConfig = true again?

Fixed in v26