Skip to content

why need build while install buf by brew? #4570

@cruvie

Description

@cruvie

due to some net issue, build may failed, may provider binary directly for brew installation better?

and the build need install go, but I don't manage go by brew and I don't want has two go installed on my mac.

==> Fetching downloads for: buf
==> Verifying checksum for 'd3d579b2016068dcf8062bd45791fde38a08044b39ace9932f4031a997de8333--buf-1.70.0.tar.gz'ng   1.9MB/------
✔︎ Formula buf (1.70.0)                                                                                 Verified      1.9MB/  1.9MB
==> Installing buf from bufbuild/buf
mv /private/tmp/homebrew-unpack-20260611-8698-ylg4bs/buf-1.70.0 /private/tmp/buf-20260611-8698-j228xz/buf-1.70.0
==> sh make/buf/scripts/brew.sh .build/brew
CGO_ENABLED=0 go build -ldflags "-s -w" -trimpath -o ".build/brew/bin/buf" "./cmd/buf"
go: downloading github.com/klauspost/compress v1.18.6
go: downloading github.com/segmentio/encoding v0.5.4
go: downloading github.com/google/cel-go v0.28.1
go: downloading go.lsp.dev/protocol v0.12.0
go: downloading go.lsp.dev/uri v0.3.0
go: downloading go.uber.org/zap v1.28.0
go: downloading mvdan.cc/xurls/v2 v2.6.0
go: downloading golang.org/x/text v0.37.0
go: downloading go.lsp.dev/pkg v0.0.0-20210717090340-384b27a52fb2
go: downloading google.golang.org/genproto/googleapis/api v0.0.0-20260523011958-0a33c5d7ca68
go: downloading cel.dev/expr v0.25.2
go: downloading github.com/antlr4-go/antlr/v4 v4.13.1
go: downloading go.uber.org/multierr v1.11.0
go: downloading google.golang.org/genproto/googleapis/rpc v0.0.0-20260523011958-0a33c5d7ca68
private/pkg/storage/storagearchive/storagearchive.go:30:2: github.com/klauspost/compress@v1.18.6: read "https://proxy.golang.org/github.com/klauspost/compress/@v/v1.18.6.zip": unexpected EOF

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions