-
Notifications
You must be signed in to change notification settings - Fork 275
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
Update bufmod
from main
#2636
Conversation
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.
private/buf/cmd/buf/buf.go
Outdated
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`) |
There was a problem hiding this comment.
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.)
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in cdad00c.
Basically:
Didn't cleanly apply, so had to make some edits in the last two commits:
buf alpha sdk python-version
, so I made edits based on the other commands in a336427.make testbufnew
passes.