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

Update bufmod from main #2636

Merged
merged 6 commits into from
Dec 3, 2023
Merged

Update bufmod from main #2636

merged 6 commits into from
Dec 3, 2023

Conversation

stefanvanburen
Copy link
Member

Basically:

$ git checkout bufmod
$ git switch -c svanburen/bufmod-update
$ git merge main

Didn't cleanly apply, so had to make some edits in the last two commits:

make testbufnew passes.

nicksnyder and others added 5 commits December 1, 2023 07:26
A user in our public slack got confused when they suddenly started
seeing this error message in the CLI:
> Failure: you are not authenticated. Create a new entry in your netrc,
using a Buf API Key as the password. For details, visit
https://docs.buf.build/bsr/authentication

The problem was that their token was expired and `buf registry logout`
fixed it for them.

This change improves the error message so that users know to check to
see if their token has expired.
Comment on lines 291 to 293
return errors.New(`Failure: you are not authenticated. Create a new entry in your netrc, " +
"using a Buf API Key as the password. For details, visit https://docs.buf.build/bsr/authentication`)
"using a Buf API Key as the password. If you already have an entry in your netrc, check " +
"to see that your token is not expired. For details, visit https://docs.buf.build/bsr/authentication`)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe dumb question, but given that we're using raw strings here, wouldn't they include the raw " and + characters here? (Going to check locally.)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ya, let me fix that, heh:

$ buf beta registry repository get buf.build/svanburen/test-private
Failure: you are not authenticated. Create a new entry in your netrc, " +
				"using a Buf API Key as the password. If you already have an entry in your netrc, check " +
				"to see that your token is not expired. For details, visit https://docs.buf.build/bsr/authentication

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in cdad00c.

@bufdev bufdev merged commit ce53f23 into bufmod Dec 3, 2023
3 of 7 checks passed
@bufdev bufdev deleted the svanburen/bufmod-update branch December 3, 2023 17:28
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

Successfully merging this pull request may close these issues.

3 participants