ovh / venom

🐍 Manage and run your integration tests with efficiency - Venom run executors (script, HTTP Request, web, imap, etc... ) and assertions
Apache License 2.0
1.06k stars 144 forks source link

fix: [Make] Create windows binaries with .exe extension #792

Closed zalgonoise closed 3 months ago

zalgonoise commented 6 months ago

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 why IS_WINDOWS isn't being recognized :)

That being the case, I am opening a suggestion to leverage the GOOS env var taken from the get_os_from_binary_file call, and changing the filename if the OS is windows.

Any suggestions for changes are welcome, provided that we are able to distribute windows binaries with the proper extension :)

zalgonoise commented 6 months ago

Note: the force-push was to add the sign-off mark to the commit, in compliance with the DCO :)

yesnault commented 3 months ago

Thank you @zalgonoise

ovh-cds commented 3 months ago

CDS Report build-venom-a#190.0 ✘