Skip to content

Commit

Permalink
fix: incorrect download attempt for Linux-arm64
Browse files Browse the repository at this point in the history
[See](#166)
  • Loading branch information
arunpoudel authored Oct 26, 2023
1 parent 6bdfab1 commit c39f787
Showing 1 changed file with 6 additions and 0 deletions.
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 c39f787

Please sign in to comment.