Skip to content

Comments

Fix: append .exe extension to default output filename on Windows#429

Merged
szkiba merged 1 commit intomasterfrom
427-incorrect-k6-executable-name-on-windows
Feb 19, 2026
Merged

Fix: append .exe extension to default output filename on Windows#429
szkiba merged 1 commit intomasterfrom
427-incorrect-k6-executable-name-on-windows

Conversation

@szkiba
Copy link
Contributor

@szkiba szkiba commented Feb 19, 2026

Clarification: This issue specifically occurs when cross-compiling to Windows from another platform (e.g., Linux or macOS). When compiling directly on Windows, Go already appends the .exe extension to the default output name automatically.

The fix ensures that the .exe extension is also added when cross-compiling to Windows (GOOS=windows) from other platforms.

Fixes #427

@szkiba szkiba requested a review from a team as a code owner February 19, 2026 17:10
@szkiba szkiba requested a review from mstoykov February 19, 2026 17:10
@szkiba szkiba linked an issue Feb 19, 2026 that may be closed by this pull request
@szkiba szkiba requested review from andrewslotin and removed request for mstoykov February 19, 2026 17:21
@szkiba szkiba merged commit 8da6c57 into master Feb 19, 2026
20 checks passed
@szkiba szkiba deleted the 427-incorrect-k6-executable-name-on-windows branch February 19, 2026 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect k6 executable name on Windows

2 participants