Skip to content

Commit

Permalink
Added .exe extension for buf download to prevent 404 (#2841)
Browse files Browse the repository at this point in the history
* added .exe extension

Signed-off-by: Ludvig Liljenberg <[email protected]>
  • Loading branch information
ludfjig authored Jul 27, 2023
1 parent 1f973e2 commit 8e21833
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,4 @@ and we will add you. **All** contributors belong here. 💯
* [Tomi Paananen](https://github.com/tompaana)
* [Troy Connor](https://github.com/troy0820)
* [Phill Gibson](https://github.com/phillipgibson)
* [Ludvig Liljenberg](https://github.com/ludfjig)
5 changes: 5 additions & 0 deletions mage/setup/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ func EnsureBufBuild() {
"amd64": "x86_64",
},
}

if runtime.GOOS == "windows" {
opts.Ext = ".exe"
}

err := downloads.DownloadToGopathBin(opts)
mgx.Must(err)
}
Expand Down

0 comments on commit 8e21833

Please sign in to comment.