Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions buf/plugin.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,8 @@ type = "cli"
[resolve]
git-url = "https://github.com/bufbuild/buf"

# buf names macOS arm assets "arm64". Linux arm assets are "aarch64", but the CI
# matrix has no Linux arm target, so aarch64 only ever resolves on macOS here.
[install.arch]
aarch64 = "arm64"
x86_64 = "x86_64"

# buf spells the arm architecture per OS: Linux assets say "aarch64", Darwin and
# Windows ones say "arm64", so the rename lives on those two platforms only.
[platform.linux]
download-file = "buf-Linux-{arch}.tar.gz"
checksum-file = "sha256.txt"
Expand All @@ -20,11 +16,17 @@ download-file = "buf-Darwin-{arch}.tar.gz"
checksum-file = "sha256.txt"
exe-path = "buf/bin/buf"

[platform.macos.arch]
aarch64 = "arm64"

[platform.windows]
download-file = "buf-Windows-{arch}.zip"
checksum-file = "sha256.txt"
exe-path = "buf/bin/buf.exe"

[platform.windows.arch]
aarch64 = "arm64"

[install]
download-url = "https://github.com/bufbuild/buf/releases/download/v{version}/{download_file}"
checksum-url = "https://github.com/bufbuild/buf/releases/download/v{version}/{checksum_file}"