Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix download location for Linux and arm64 #167

Merged
merged 3 commits into from
Oct 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/main.js.map

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions src/buf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,12 @@ async function getDownloadURL(
// The asset name is determined by the buf release structure found at:
// https://github.com/bufbuild/buf/blob/8255257bd94c9f1b5faa27242211c5caad05be79/make/buf/scripts/release.bash#L102
let assetName = "";

// See: https://github.com/bufbuild/buf-setup-action/issues/166
if (platform === "Linux" && architecture === "arm64") {
architecture = "aarch64";
}

// For Windows, we only download the .exe for `buf` CLI
if (platform === "Windows") {
assetName = `buf-${platform}-${architecture}.exe`;
Expand Down