Closed anka-213 closed 3 years ago
@domenkozar I opened an issue for it here instead of in your getting-started-nix-template
repo, since I assumed it's an upstream issue. Is this correct?
I've been seeing this too, no idea yet what's going on.
I think GitHub might have started using GITHUB_PATH
, which is read by niv
(and prepended to the HTTP path used when making API calls). Will need to investigate.
Same here.
Can somebody try echo
ing or unset
ing GITHUB_PATH
? I don't have a GitHub action workflow handy
Can confirm unsetting GITHUB_PATH
makes it work again.
Great, I'll work on the workaround.
@domenkozar It's a bit off-topic, but how do you test GitHub Actions? I don't know of a way to run them manually unless they've failed, and when you re-run those, it appears to use the same revision of the action that failed the first time, not any newer revision.
@domenkozar mind having a quick look here, see if that makes sense? https://github.com/nmattia/niv/pull/281
I've just release v0.2.18, feel free to re-open if the workaround is not applicable or if the problem persist!
@dhess The solution I used was to add "on: push" to the yaml file, so it runs every time you push new changes.
@anka-213 Ahh, that's clever, thanks!
Hmm, I've not gotten it to work yet. Neither unsetting GITHUB_TOKEN nor upgrading to latest version of niv helped for me. https://github.com/anka-213/cclaw-nix-stuff/actions?query=workflow%3A%22Update+niv%22
and I don't see any succeeding tests here either: https://github.com/nix-dot-dev/getting-started-nix-template/actions?query=workflow%3A%22Update+niv%22
Same, my GitHub Actions using niv are still failing after upgrading to this version of niv.
Neither unsetting GITHUB_TOKEN
I think you mean GITHUB_PATH
?
nor upgrading to latest version of niv helped for me.
How exactly are you pinning the version? Have you tried building from master (using the cache) like niv-updater-action? That one (niv-updater-action) is now running smoothly again.
EDIT: the tests here appear to be working; note the GITHUB_PATH=
Oh, do we still need to unset GITHUB_PATH
to make this work with GitHub Actions?
No, it should work out of the box with niv 0.2.18. Are you sure you're using that version?
I pinned the latest version in my sources.json
, but didn't make it available in the shell in which the GitHub Action was running. Sorry, user error! Should be fixed now.
Neither unsetting GITHUB_TOKEN
I think you mean
GITHUB_PATH
?
Ah, right. That was the problem. I didn't notice the difference!
How exactly are you pinning the version?
Apparently in the wrong way. It was using the version from nixpkgs.
Thanks!
Five days ago something changed. I'm not sure what: https://github.com/nix-dot-dev/getting-started-nix-template/actions?query=workflow%3A%22Update+niv%22
Now we're getting error messages like this:
Adding a GITHUB_TOKEN doesn't help.
Do you have any idea what the problem is?