Skip to content

Commit

Permalink
Fix download location for Linux and arm64 (#167)
Browse files Browse the repository at this point in the history
Resolves #166
  • Loading branch information
arunpoudel authored Oct 27, 2023
1 parent 6bdfab1 commit e83a01e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
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

0 comments on commit e83a01e

Please sign in to comment.