Skip to content

add ".exe" when cross compiling for windows#179

Merged
mohammed90 merged 3 commits intocaddyserver:masterfrom
WeidiDeng:windows-extension
May 6, 2024
Merged

add ".exe" when cross compiling for windows#179
mohammed90 merged 3 commits intocaddyserver:masterfrom
WeidiDeng:windows-extension

Conversation

@WeidiDeng
Copy link
Member

Previously ".exe" will be added automatically when on windows, but not when cross compiling.

@francislavoie
Copy link
Member

Maybe the condition should only be the target OS? I don't think the platform we're running on matters for the extension (except for choosing the default GOOS I guess). So maybe if the env var is empty it can look at runtime?

@mohammed90
Copy link
Member

@WeidiDeng, is this ready? We need to do a hotfix release, and this is a good change.

Copy link
Member

@mholt mholt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM. IMO, we can merge it 🤷‍♂️

@mholt
Copy link
Member

mholt commented May 6, 2024

Thank you, by the way, @WeidiDeng !

@mohammed90 mohammed90 merged commit bff6878 into caddyserver:master May 6, 2024
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.

4 participants