bufbuild / buf

The best way of working with Protocol Buffers.
https://buf.build
Apache License 2.0
8.49k stars 247 forks source link

Improve auth error for BSR remotes #3116

Closed emcfarlane closed 4 days ago

emcfarlane commented 5 days ago

Users interacting with a remote BSR may see an auth error when using the env variable BUF_TOKEN. This is reported as:

Failure: the BUF_TOKEN environment variable is set, but is not valid.

To help users identify which remote was used, we now report the remote in the error message:

Failure: the BUF_TOKEN environment variable is not valid for buf.build.

This can help clarify which remote was used. As an example this can be caused when a modules dependencies are on a different BSR instance then the parent module.

github-actions[bot] commented 4 days ago

The latest Buf updates on your PR.

NameStatus
build✅ passed
lint✅ passed
format✅ passed
breaking✅ passed