all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: sirgazil <sirgazil@zoho.com>
To: guix-devel <guix-devel@gnu.org>
Subject: How do I set GUIX_GITHUB_TOKEN correctly?
Date: Sun, 29 Mar 2020 09:51:20 -0500	[thread overview]
Message-ID: <17126c69430.cc71642f55506.1606358666346076668@zoho.com> (raw)

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/

                 reply	other threads:[~2020-03-29 14:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=17126c69430.cc71642f55506.1606358666346076668@zoho.com \
    --to=sirgazil@zoho.com \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.