Skip to content

panic: github.com/bufbuild/buf/private code must only be imported by github.com/bufbuild projects #8

@softshipper

Description

@softshipper

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions