-
Notifications
You must be signed in to change notification settings - Fork 47
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
Bug: bin is not able to locate releases on Github for bufbuild/buf #84
Comments
They are all prereleases, and I think those are actively being filtered out at the moment |
That's correct. Close? |
Works by pointing to the particular pre-release in case you want it: $ bin install https://github.com/bufbuild/buf/releases/tag/v0.40.0
• Getting v0.40.0 release for bufbuild/buf
Multiple matches found, please select one:
[1] buf-Linux-x86_64
[2] buf-Linux-x86_64.tar.gz
[3] protoc-gen-buf-breaking-Linux-x86_64
[4] protoc-gen-buf-check-breaking-Linux-x86_64
[5] protoc-gen-buf-check-lint-Linux-x86_64
[6] protoc-gen-buf-lint-Linux-x86_64
Select an option: 1
• Starting download of https://github.com/bufbuild/buf/releases/download/v0.40.0/buf-Linux-x86_64
16.40 MiB / 16.40 MiB [-----------------------------------------------------------------------] 100.00% 19.93 MiB p/s 1s
• Copying for buf@v0.40.0 into /home/sune/bin/buf
• Done installing buf v0.40.0 |
Sorry, but I have to reopen this issue again, because the above mentioned workaround does break I installed $ bin install https://github.com/bufbuild/buf/releases/tag/v0.40.0
• Getting v0.40.0 release for bufbuild/buf
Multiple matches found, please select one:
[1] buf-Linux-x86_64
[2] buf-Linux-x86_64.tar.gz
[3] protoc-gen-buf-breaking-Linux-x86_64
[4] protoc-gen-buf-check-breaking-Linux-x86_64
[5] protoc-gen-buf-check-lint-Linux-x86_64
[6] protoc-gen-buf-lint-Linux-x86_64
Select an option: 1
• Starting download of https://github.com/bufbuild/buf/releases/download/v0.40.0/buf-Linux-x86_64
16.40 MiB / 16.40 MiB [---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 100.00% 12.12 MiB p/s 1s
• Copying for buf@v0.40.0 into <redacted>/bin/buf
• Done installing buf v0.40.0 If I execute $ bin update
⨯ command failed error=Error checking updates for /home/lubr/bin/buf, GET https://api.github.com/repos/bufbuild/buf/releases/latest: 404 Not Found [] So we could argue, that we now have a different issue that is, if one of the updates are misbehaving, all updates are blocked. For the support of pre-releases I created a new feature request: #86 |
@breml I added a fix specifically for GitHub repos with only prereleases in #87. Doesn't offer any opt-in mechanism other than starting out with a specific prerelease URL, e.g.: <user>@<host>:~/src/marcosnils/bin$ bin install https://github.com/bufbuild/buf/releases/tag/v0.39.0
• Getting v0.39.0 release for bufbuild/buf
Multiple matches found, please select one:
[1] buf-Linux-x86_64
[2] buf-Linux-x86_64.tar.gz
[3] protoc-gen-buf-breaking-Linux-x86_64
[4] protoc-gen-buf-check-breaking-Linux-x86_64
[5] protoc-gen-buf-check-lint-Linux-x86_64
[6] protoc-gen-buf-lint-Linux-x86_64
Select an option: 1
• Starting download of https://github.com/bufbuild/buf/releases/download/v0.39.0/buf-Linux-x86_64
16.34 MiB / 16.34 MiB [-----------------------------------------------------------------------------------------------------------------------------------------------------] 100.00% 14.86 MiB p/s 2s
• Copying for buf@v0.39.0 into /home/<redacted>/bin/buf
• Done installing buf v0.39.0
<user>@<host>:~/src/marcosnils/bin$ bin update
• /home/<redacted>/bin/buf v0.39.0 -> v0.40.0 (https://github.com/bufbuild/buf/releases/tag/v0.40.0)
Do you want to continue? [Y/n] Y
• Getting v0.40.0 release for bufbuild/buf
Multiple matches found, please select one:
[1] buf-Linux-x86_64
[2] buf-Linux-x86_64.tar.gz
[3] protoc-gen-buf-breaking-Linux-x86_64
[4] protoc-gen-buf-check-breaking-Linux-x86_64
[5] protoc-gen-buf-check-lint-Linux-x86_64
[6] protoc-gen-buf-lint-Linux-x86_64
Select an option: 1
• Starting download of https://github.com/bufbuild/buf/releases/download/v0.40.0/buf-Linux-x86_64
16.40 MiB / 16.40 MiB [-----------------------------------------------------------------------------------------------------------------------------------------------------] 100.00% 14.77 MiB p/s 1s
• Copying for buf@v0.40.0 into /home/<redacted>/bin/buf
• Done updating /home/<redacted>/bin/buf to v0.40.0 PS: We may want to consider storing the user's choice of release asset for smoother updates? |
Let's close and continue con #86 ? |
Fine with me. |
I tried to install with the following command:
But there are clearly releases available on https://github.com/bufbuild/buf/releases
I have not yet investigated, where
bin
is failing.I am using the latest build:
The text was updated successfully, but these errors were encountered: