bufbuild / homebrew-buf Goto Github PK
View Code? Open in Web Editor NEWHomebrew tap for Buf.
Home Page: https://buf.build
License: Apache License 2.0
Homebrew tap for Buf.
Home Page: https://buf.build
License: Apache License 2.0
brew upgrade bufbuild/buf/buf
Updating Homebrew...
==> Upgrading 1 outdated package:
bufbuild/buf/buf 0.18.1 -> 0.22.0
==> Upgrading bufbuild/buf/buf 0.18.1 -> 0.22.0
==> Downloading https://github.com/bufbuild/buf/archive/v0.22.0.tar.gz
Already downloaded: /Users/xxx/Library/Caches/Homebrew/downloads/5a748466e385d7dc68731d7f67517eceb6ff3e29eccc733b4d3b8f68005bed8c--buf-0.22.0.tar.gz
==> sh make/buf/scripts/brew.sh .build/brew
Last 15 lines from /Users/xxx/Library/Logs/Homebrew/buf/01.sh:
sh
make/buf/scripts/brew.sh
.build/brew
+ go build -ldflags '-s -w' -trimpath -o .build/brew/bin/buf cmd/buf/main.go
go: downloading google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d
go: downloading github.com/klauspost/compress v1.11.0
/Users/xxx/Library/Caches/Homebrew/go_cache/pkg/mod/github.com/klauspost/[email protected]/gunzip.go:26:2: github.com/klauspost/[email protected]: reading https://proxy.golang.org/github.com/klauspost/compress/@v/v1.11.0.zip: 403 Forbidden
internal/pkg/storage/storagearchive/storagearchive.go:28:2: github.com/klauspost/[email protected]: reading https://proxy.golang.org/github.com/klauspost/compress/@v/v1.11.0.zip: 403 Forbidden
internal/buf/buffetch/internal/reader.go:38:2: github.com/klauspost/[email protected]: reading https://proxy.golang.org/github.com/klauspost/compress/@v/v1.11.0.zip: 403 Forbidden
/Users/xxx/Library/Caches/Homebrew/go_cache/pkg/mod/github.com/jhump/[email protected]/desc/protoparse/std_imports.go:13:2: google.golang.org/[email protected]: reading https://proxy.golang.org/google.golang.org/genproto/@v/v0.0.0-20200904004341-0bd0a958aa1d.zip: 403 Forbidden
/Users/xxx/Library/Caches/Homebrew/go_cache/pkg/mod/github.com/jhump/[email protected]/desc/protoparse/std_imports.go:14:2: google.golang.org/[email protected]: reading https://proxy.golang.org/google.golang.org/genproto/@v/v0.0.0-20200904004341-0bd0a958aa1d.zip: 403 Forbidden
/Users/xxx/Library/Caches/Homebrew/go_cache/pkg/mod/github.com/jhump/[email protected]/desc/protoparse/std_imports.go:15:2: google.golang.org/[email protected]: reading https://proxy.golang.org/google.golang.org/genproto/@v/v0.0.0-20200904004341-0bd0a958aa1d.zip: 403 Forbidden
/Users/xxx/Library/Caches/Homebrew/go_cache/pkg/mod/github.com/jhump/[email protected]/desc/protoparse/std_imports.go:16:2: google.golang.org/[email protected]: reading https://proxy.golang.org/google.golang.org/genproto/@v/v0.0.0-20200904004341-0bd0a958aa1d.zip: 403 Forbidden
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/bufbuild/homebrew-buf/issues
brew install bufbuild/buf/buf
==> Installing buf from bufbuild/buf
==> Downloading https://github.com/bufbuild/buf/archive/v1.6.0.tar.gz
==> sh make/buf/scripts/brew.sh .build/brew
Last 15 lines from /Users/piet/Library/Logs/Homebrew/buf/01.sh:
2022-07-18 15:40:04 +1000
sh
make/buf/scripts/brew.sh
.build/brew
go build -ldflags "-s -w" -trimpath -o ".build/brew/bin/buf" "./cmd/buf"
go: golang.org/x/[email protected] requires
golang.org/x/[email protected]: missing go.sum entry; to add it:
go mod download golang.org/x/crypto
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/bufbuild/homebrew-buf/issues
go: github.com/gofrs/[email protected]: Get "https://proxy.golang.org/github.com/gofrs/flock/@v/v0.8.1.mod": dial tcp 172.217.160.113:443: i/o timeout
brew install bufbuild/buf/buf
Updating Homebrew...
==> Installing buf from bufbuild/buf
==> Downloading https://github.com/bufbuild/buf/archive/v1.7.0.tar.gz
Already downloaded: /Users/sss/Library/Caches/Homebrew/downloads/4e2cecaec0f34d16ba1a57df7c5ab4e604be6bff58caf9ff9090d2e67684ca81--buf-1.7.0.tar.gz
==> sh make/buf/scripts/brew.sh .build/brew
Last 15 lines from /Users/meicanstaff/Library/Logs/Homebrew/buf/01.sh:
2022-08-22 16:46:11 +0800
sh
make/buf/scripts/brew.sh
.build/brew
go build -ldflags "-s -w" -trimpath -o ".build/brew/bin/buf" "./cmd/buf"
build github.com/bufbuild/buf/cmd/buf: cannot load io/fs: malformed module path "io/fs": missing dot in first path element
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/bufbuild/homebrew-buf/issues
Now we need to install the GO environment, and we can't use GoProxy, so the installation may fail.
It can be installed via Goreleaser:
https://goreleaser.com/customization/homebrew/
buf-build-examples$ brew install bufbuild/buf/buf
Running `brew update --preinstall`...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> New Formulae
acl compiledb ddcutil ecflow-ui gops ifacemaker kmod [email protected] nvchecker shadowsocks-rust
autocannon criterion difftastic flyctl highs imposm3 libcython melody openjdk@17 ugit
cloudflare-quiche dagger easeprobe gi-docgen httpyac jdtls libmarpa mongodb-atlas-cli powerman-dockerize wasm-tools
==> Updated Formulae
Updated 1106 formulae.
==> Deleted Formulae
autopano-sift-c boost-python griffon komposition mozilla-addon-sdk
==> Tapping bufbuild/buf
Cloning into '/usr/local/Homebrew/Library/Taps/bufbuild/homebrew-buf'...
remote: Enumerating objects: 421, done.
remote: Counting objects: 100% (43/43), done.
remote: Compressing objects: 100% (18/18), done.
remote: Total 421 (delta 17), reused 41 (delta 17), pack-reused 378
Receiving objects: 100% (421/421), 51.95 KiB | 483.00 KiB/s, done.
Resolving deltas: 100% (113/113), done.
Tapped 1 formula (15 files, 80.8KB).
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/go-1.18.monterey.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://github.com/bufbuild/buf/archive/v1.3.1.tar.gz
==> Downloading from https://codeload.github.com/bufbuild/buf/tar.gz/refs/tags/v1.3.1
#-#O=-# #
==> Installing buf from bufbuild/buf
Warning: A newer Command Line Tools release is available.
Update them from Software Update in System Preferences or run:
softwareupdate --all --install --force
If that doesn't show you any updates, run:
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
Alternatively, manually download them from:
https://developer.apple.com/download/all/.
You should download the Command Line Tools for Xcode 13.3.
==> Installing dependencies for bufbuild/buf/buf: go
==> Installing bufbuild/buf/buf dependency: go
==> Pouring go-1.18.monterey.bottle.tar.gz
๐บ /usr/local/Cellar/go/1.18: 11,947 files, 592.6MB
==> Installing bufbuild/buf/buf
==> sh make/buf/scripts/brew.sh .build/brew
Last 15 lines from /Users/gongzhen/Library/Logs/Homebrew/buf/01.sh:
private/pkg/transport/grpc/grpcclient/client_conn_provider.go:31:2: google.golang.org/[email protected]: Get "https://proxy.golang.org/google.golang.org/grpc/@v/v1.45.0.zip": dial tcp 172.217.163.49:443: i/o timeout
private/pkg/rpc/rpcgrpc/rpcgrpc.go:25:2: google.golang.org/[email protected]: Get "https://proxy.golang.org/google.golang.org/grpc/@v/v1.45.0.zip": dial tcp 172.217.163.49:443: i/o timeout
private/gen/proto/go/buf/alpha/registry/v1alpha1/admin_grpc.pb.go:27:2: google.golang.org/[email protected]: Get "https://proxy.golang.org/google.golang.org/grpc/@v/v1.45.0.zip": dial tcp 172.217.163.49:443: i/o timeout
private/pkg/protoencoding/json_marshaler.go:21:2: google.golang.org/[email protected]: Get "https://proxy.golang.org/google.golang.org/protobuf/@v/v1.28.0.zip": dial tcp 172.217.163.49:443: i/o timeout
private/pkg/protosource/option_extension_descriptor.go:18:2: google.golang.org/[email protected]: Get "https://proxy.golang.org/google.golang.org/protobuf/@v/v1.28.0.zip": dial tcp 172.217.163.49:443: i/o timeout
private/pkg/protodescriptor/protodescriptor.go:22:2: google.golang.org/[email protected]: Get "https://proxy.golang.org/google.golang.org/protobuf/@v/v1.28.0.zip": dial tcp 172.217.163.49:443: i/o timeout
private/bufpkg/bufreflect/bufreflect.go:23:2: google.golang.org/[email protected]: Get "https://proxy.golang.org/google.golang.org/protobuf/@v/v1.28.0.zip": dial tcp 172.217.163.49:443: i/o timeout
private/gen/proto/go/buf/alpha/breaking/v1/config.pb.go:24:2: google.golang.org/[email protected]: Get "https://proxy.golang.org/google.golang.org/protobuf/@v/v1.28.0.zip": dial tcp 172.217.163.49:443: i/o timeout
private/pkg/protoencoding/protoencoding.go:20:2: google.golang.org/[email protected]: Get "https://proxy.golang.org/google.golang.org/protobuf/@v/v1.28.0.zip": dial tcp 172.217.163.49:443: i/o timeout
private/gen/proto/go/buf/alpha/breaking/v1/config.pb.go:25:2: google.golang.org/[email protected]: Get "https://proxy.golang.org/google.golang.org/protobuf/@v/v1.28.0.zip": dial tcp 172.217.163.49:443: i/o timeout
private/pkg/protodescriptor/protodescriptor.go:23:2: google.golang.org/[email protected]: Get "https://proxy.golang.org/google.golang.org/protobuf/@v/v1.28.0.zip": dial tcp 172.217.163.49:443: i/o timeout
private/bufpkg/bufreflect/bufreflect.go:25:2: google.golang.org/[email protected]: Get "https://proxy.golang.org/google.golang.org/protobuf/@v/v1.28.0.zip": dial tcp 172.217.163.49:443: i/o timeout
private/gen/proto/go/buf/alpha/module/v1alpha1/module.pb.go:28:2: google.golang.org/[email protected]: Get "https://proxy.golang.org/google.golang.org/protobuf/@v/v1.28.0.zip": dial tcp 172.217.163.49:443: i/o timeout
private/pkg/protodescriptor/protodescriptor.go:24:2: google.golang.org/[email protected]: Get "https://proxy.golang.org/google.golang.org/protobuf/@v/v1.28.0.zip": dial tcp 172.217.163.49:443: i/o timeout
private/pkg/encoding/encoding.go:27:2: gopkg.in/[email protected]: Get "https://proxy.golang.org/gopkg.in/yaml.v3/@v/v3.0.0-20210107192922-496545a6307b.zip": dial tcp 172.217.163.49:443: i/o timeout
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/bufbuild/homebrew-buf/issues
Error: A newer Command Line Tools release is available.
Update them from Software Update in System Preferences or run:
softwareupdate --all --install --force
If that doesn't show you any updates, run:
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
Alternatively, manually download them from:
https://developer.apple.com/download/all/.
You should download the Command Line Tools for Xcode 13.3.
This formula depends on Go for building.
It means that it installs go
from the stable
channel and leaves it there after installing buf, which is not really necessary.
It also means that it creates confusion regrading which is the "correct" Go binary, if another Go version is installed (e.g. [email protected]
from brew) or Go is installed in other way (e.g. downloaded from https://go.dev/dl/).
I believe it's possible to change this formula so it just downloads the pre-built binary from https://github.com/bufbuild/buf/releases, at least for explicitly for linux and macOS (can still install Go and build from source otherwise, to avoid losing comptability for non-linux-and-macOS-OSes). I think it should also make the formula installation faster and more reliable (why build from source on every installation if we can use the officially-released pre-built binary?).
If you agree with my suggestion, I'd love to submit a PR that does that.
Got this error while trying to install with a brew
command:
$ brew install bufbuild/buf/buf
Error:
homebrew-core is a shallow clone.
To `brew update`, first run:
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
This restriction has been made on GitHub's request because updating shallow
clones is an extremely expensive operation due to the tree layout and traffic of
Homebrew/homebrew-core and Homebrew/homebrew-cask. We don't do this for you
automatically to avoid repeatedly performing an expensive unshallow operation in
CI systems (which should instead be fixed to not use shallow clones). Sorry for
the inconvenience!
==> Tapping bufbuild/buf
Cloning into '/usr/local/Homebrew/Library/Taps/bufbuild/homebrew-buf'...
remote: Enumerating objects: 393, done.
remote: Counting objects: 100% (15/15), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 393 (delta 10), reused 13 (delta 10), pack-reused 378
Receiving objects: 100% (393/393), 48.77 KiB | 1019.00 KiB/s, done.
Resolving deltas: 100% (106/106), done.
Tapped 1 formula (29 files, 98KB).
==> Installing buf from bufbuild/buf
==> Downloading https://github.com/bufbuild/buf/archive/v1.0.0-rc12.tar.gz
==> Downloading from https://codeload.github.com/bufbuild/buf/tar.gz/v1.0.0-rc12
# #=O#- #
Warning: Your Xcode (12.0) is outdated.
Please update to Xcode 12.2 (or delete it).
Xcode can be updated from the App Store.
==> sh make/buf/scripts/brew.sh .build/brew
Last 15 lines from /Users/sean/Library/Logs/Homebrew/buf/01.sh:
go: downloading github.com/klauspost/compress v1.14.2
go: downloading go.uber.org/multierr v1.7.0
go: downloading github.com/klauspost/pgzip v1.2.5
go: downloading gopkg.in/yaml.v2 v2.4.0
go: downloading github.com/cpuguy83/go-md2man/v2 v2.0.1
go: downloading go.uber.org/atomic v1.9.0
go: downloading github.com/jdxcode/netrc v0.0.0-20210204082910-926c7f70242a
go: downloading github.com/russross/blackfriday/v2 v2.1.0
go: downloading github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
go: downloading golang.org/x/sys v0.0.0-20220114195835-da31bd327af9
go: downloading github.com/golang/protobuf v1.5.2
go: downloading google.golang.org/genproto v0.0.0-20220118154757-00ab72f36ad5
go: downloading golang.org/x/net v0.0.0-20220114011407-0dd24b26b47d
go: downloading golang.org/x/text v0.3.7
private/pkg/netrc/netrc.go:19:2: package io/fs is not in GOROOT (/usr/local/Cellar/go/1.15.5/libexec/src/io/fs)
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/bufbuild/homebrew-buf/issues
These open issues may also help:
brew install buf fail https://github.com/bufbuild/homebrew-buf/issues/5
Error: Your Xcode (12.0) is outdated.
Please update to Xcode 12.2 (or delete it).
Xcode can be updated from the App Store.
Does this error mean that xcode is required to install buf from homebrew?
go: github.com/gofrs/[email protected]: Get โhttps://proxy.golang.org/github.com/gofrs/flock/@v/v0.8.1.modโ: x509: certificate signed by unknown authority
What do we need to do on our side?
Hi all,
Try to install buf on macOS Monterey it is showing the following error message:
โฏ brew install bufbuild/buf/buf
==> Downloading https://github.com/bufbuild/buf/archive/v1.1.0.tar.gz
Already downloaded: /Users/developer/Library/Caches/Homebrew/downloads/51fd7b8ea258acbe62f1063dd9676491da7971c17f0b97ced6eb1b26e4b4ccbd--buf-1.1.0.tar.gz
==> Installing buf from bufbuild/buf
==> sh make/buf/scripts/brew.sh .build/brew
Last 15 lines from /Users/developer/Library/Logs/Homebrew/buf/01.sh:
2022-03-20 20:30:47 +0000
sh
make/buf/scripts/brew.sh
.build/brew
go build -ldflags "-s -w" -trimpath -o ".build/brew/bin/buf" "cmd/buf/main.go"
go build -ldflags "-s -w" -trimpath -o ".build/brew/bin/protoc-gen-buf-breaking" "cmd/protoc-gen-buf-breaking/main.go"
go build -ldflags "-s -w" -trimpath -o ".build/brew/bin/protoc-gen-buf-lint" "cmd/protoc-gen-buf-lint/main.go"
".build/brew/bin/buf" completion bash > ".build/brew/etc/bash_completion.d/buf"
panic: github.com/bufbuild/buf/private code must only be imported by github.com/bufbuild projects
goroutine 1 [running]:
github.com/bufbuild/buf/private/usage.init.0()
github.com/bufbuild/buf/private/usage/usage.go:30 +0x50
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/bufbuild/homebrew-buf/issues
What am I doing wrong?
Thanks
I just did a fresh install of the Solus Linux distro with Budgie desktop environment. After installing homebrew, I tried to reinstall Buf and got this error:
$ brew install bufbuild/buf/buf
==> sh make/buf/scripts/brew.sh .build/brew
Last 15 lines from /home/stabai/.cache/Homebrew/Logs/buf/01.sh:
2022-03-14 20:18:33 +0000
sh
make/buf/scripts/brew.sh
.build/brew
go build -ldflags "-s -w" -trimpath -o ".build/brew/bin/buf" "cmd/buf/main.go"
# runtime/cgo
_cgo_export.c:3:20: fatal error: stdlib.h: No such file or directory
compilation terminated.
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/bufbuild/homebrew-buf/issues
This looked like an issue with the go compiler to me, so I ensured that go is installed and rebooted the machine, but the problem still persists.
Homebrew version info:
Homebrew 3.4.1
Homebrew/homebrew-core (git revision 7c6c22befcb; last commit 2022-03-14)
Linux64 version info:
linux64 from util-linux 2.37.4
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.