Skip to content

Commit

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

Signed-off-by: Ludvig Liljenberg <[email protected]>
Signed-off-by: Allan Guwatudde <[email protected]>
  • Loading branch information
ludfjig authored and Allan Guwatudde committed Aug 9, 2023
1 parent bba299b commit 9cc829e
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 9cc829e

Please sign in to comment.