Skip to content

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

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

mohammed90 merged 3 commits into
caddyserver:masterfrom
WeidiDeng:windows-extension

Conversation

@WeidiDeng

Copy link
Copy Markdown
Member

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

@francislavoie

Copy link
Copy Markdown
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?

Comment thread cmd/main.go Outdated
@mohammed90

Copy link
Copy Markdown
Member

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

@mholt mholt left a comment

Copy link
Copy Markdown
Member

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

mholt commented May 6, 2024

Copy link
Copy Markdown
Member

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