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. go@1.18 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.
This formula depends on Go for building.
It means that it installs
gofrom thestablechannel 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.
go@1.18from 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.