all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How do I set GUIX_GITHUB_TOKEN correctly?
@ 2020-03-29 14:51 sirgazil
  0 siblings, 0 replies; only message in thread
From: sirgazil @ 2020-03-29 14:51 UTC (permalink / raw)
  To: guix-devel

Hi,

I've been packaging software hosted on GitHub without problems for some days, but recently, running "guix lint -L . python-commonmark" (a package I'm defining on https://gitlab.com/sirgazil/guix-channel-x/-/blob/master/sirgazil-x/packages/python.scm#L67) failed and a message suggested to create a GitHub token. I created a token with all the "Repo" scopes selected, exported the GUIX_GITHUB_TOKEN variable, but now I'm getting the following error:

🙠🙢 🙠🙢 🙠🙢 🙠🙢  🙠🙢  🙠🙢  🙠🙢  🙠🙢  🙠🙢  🙠🙢  🙠🙢 
$ guix lint -L . python-commonmark
;;; note: source file ./sirgazil-x/packages/guile.scm
;;;       newer than compiled /gnu/store/0z6ccg5hxb64id7pj7ya833amixznwxq-sirgazil-x/lib/guile/3.0/site-ccache/sirgazil-x/packages/guile.go
;;; note: source file ./sirgazil-x/packages/python.scm
;;;       newer than compiled /gnu/store/0z6ccg5hxb64id7pj7ya833amixznwxq-sirgazil-x/lib/guile/3.0/site-ccache/sirgazil-x/packages/python.go
Backtrace:ython-commonmark@0.9.1 [refresh]...
           9 (primitive-load "/home/sirgazil/.config/guix/current/bi…")
In guix/ui.scm:
  1894:12  8 (run-guix-command _ . _)
In srfi/srfi-1.scm:
    634:9  7 (for-each #<procedure 7fedc1981bc0 at guix/scripts/lin…> …)
In guix/scripts/lint.scm:
     59:4  6 (run-checkers _ _)
In srfi/srfi-1.scm:
    634:9  5 (for-each #<procedure 7fedb1261c00 at guix/scripts/lin…> …)
In guix/scripts/lint.scm:
    66:17  4 (_ _)
In guix/lint.scm:
   1063:2  3 (check-for-updates #<package python-commonmark@0.9.1 ./…>)
    973:2  2 (call-with-networking-fail-safe _ _ _)
In ice-9/boot-9.scm:
  1736:10  1 (with-exception-handler _ _ #:unwind? _ # _)
  1669:16  0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1669:16: In procedure raise-exception:
Error downloading release information through the GitHub
API when using a GitHub token
🙠🙢 🙠🙢 🙠🙢 🙠🙢  🙠🙢  🙠🙢  🙠🙢  🙠🙢  🙠🙢  🙠🙢  🙠🙢 

Then, I created another token with all scopes selected, 

$ export GUIX_GITHUB_TOKEN="new token"
$ guix lint -L . python-commonmark

and got the same error message.

I don't know what I'm missing...


---
https://sirgazil.bitbucket.io/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-03-29 14:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-29 14:51 How do I set GUIX_GITHUB_TOKEN correctly? sirgazil

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.