-
Notifications
You must be signed in to change notification settings - Fork 18
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
GITHUB_TOKEN required? #33
Comments
I had to search around for this a bit. I knew we documented it, but it was in around the fourth place I looked, which isn't great. https://github.com/teaxyz/pantry.zero/wiki#personal-access-token |
It has to do with using the GraphQL endpoint for getting tags instead of the API (due to shortcomings of the API), and rate limits (60/min for the API, 0/min for GraphQL without a PAT). |
I set the token and got the 401 unauthorized error. I set the "repo" -> "public_repo" permission. Maybe that's not enough anymore? |
It's probably because user/repo doesn't exist. Try updating that to apple-oss-distributions/libtelnet |
Ok, that was dumb of me. Unfortunately that didn't fix it. I got the same error. I wondered if maybe my version of brewkit was old so I
|
It would be great if |
Line 32 ( Just an aside, since "user/repo" is now a template value, I bet someone besides me makes the same mistake again. I checked, and it's 404. So maybe user/repo could print an error or something. IDK. I almost want to go register that name and make a repo named repo so that we can prank people or something. |
Oh, "https://github.com/user" is taken. Shucks. |
I changed ./tea.out/tea.xyz/brewkit/v0.6.0/bin/pkg-build from
So sort.ts is dying. If I run sort.ts manually it works.
|
do do
I guess if I stopped sleeping I’d have time 😭 |
A token is required yes, this is documented on the pantries. Easiest way is The 401 genuinely suggests the token is invalid. GitHub only give 401 for that AFAIK |
I started a fresh pantry so there was only the one package I'm working on.
Sleeping is good. I modified the top of bin/pkg and added this (if no arg is present, then print the help).
Then I created a new file named bin/pkg-help. But instead of actually writing a help document, I decided to test things.
It printed So, I ran that manually.
So, somehow my pantry tea was a different version (0.24.3) than the version that I had installed globally (0.24.9) and I'm guessing the pantry tea was loading stuff from the global version and that's why it died. I deleted /Users/james/Tea/pantry.extra_mag/tea.out/tea.xyz/v0.24.3 and ran
|
UGH. I hope I didn't cause you guys to spend much time debugging this. My PAT was bad. I made a new one and it worked. |
Weird that the 0.24.3 version was dying… but let's just hope it was a bug in that version. |
If I try to
pkg build
without GITHUB_TOKEN set then I get this message:If I set the GITHUB_TOKEN I get this error:
This is the package yml file I'm trying to build (I haven't gotten very far yet).
The text was updated successfully, but these errors were encountered: