fix: [Make] Create windows binaries with .exe extension #792
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When fetching Venom binaries, I noticed that Windows releases didn't include an extension. For Windows, it means that the users will face the program-picker prompt due to a lack of extension, and would have to add it manually.
This PR changes the
CROSS_COMPILED_BINARIES
make target in.build/go.mk
to check if the current target OS is windows, and if so, changing the filename to include the.exe
extension.I assume that the point of
BINARIES
is precisely this, but probably due to some lack of Make syntax knowledge, I couldn't figure out whyIS_WINDOWS
isn't being recognized :)That being the case, I am opening a suggestion to leverage the
GOOS
env var taken from theget_os_from_binary_file
call, and changing the filename if the OS iswindows
.Any suggestions for changes are welcome, provided that we are able to distribute windows binaries with the proper extension :)