Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you use this without flakes? #35

Closed
anka-213 opened this issue Aug 14, 2023 · 12 comments
Closed

How do you use this without flakes? #35

anka-213 opened this issue Aug 14, 2023 · 12 comments

Comments

@anka-213
Copy link

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

@rickynils
Copy link
Contributor

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

@rickynils
Copy link
Contributor

cc @blaggacao

@blaggacao
Copy link
Contributor

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?

@develop7
Copy link

develop7 commented Oct 6, 2023

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?

@jgoux
Copy link

jgoux commented Oct 24, 2023

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.

@rickynils
Copy link
Contributor

@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.

@jgoux
Copy link

jgoux commented Oct 24, 2023

@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!

@rickynils
Copy link
Contributor

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

@jgoux
Copy link

jgoux commented Oct 24, 2023

@rickynils The output is here: https://github.com/jgoux/acme/actions/runs/6623591526/job/17990926008#step:3:52

@rickynils
Copy link
Contributor

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

@jgoux
Copy link

jgoux commented Oct 24, 2023

@rickynils It's now working with load_nixConfig = true! Great job! https://github.com/jgoux/acme/actions/runs/6624474804/job/17993531555?pr=25#step:3:34

@rickynils
Copy link
Contributor

Fixed in v26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants