Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
May 6, 2024

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?

cmd/main.go Outdated Show resolved Hide resolved
@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
8 checks passed
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