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

Enforce netgo build tag while cross-compilation #1690

Merged
merged 1 commit into from
May 7, 2017
Merged

Enforce netgo build tag while cross-compilation #1690

merged 1 commit into from
May 7, 2017

Conversation

tboerger
Copy link
Member

@tboerger tboerger commented May 6, 2017

Always enforce the builtin name resolution for cross-compiled binaries to prevent CGO executions.

Fixes #1168
Fixes #1684
Fixes #1408
Fixes #1500

@andreynering
Copy link
Contributor

LGTM

@tboerger tboerger added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label May 6, 2017
@sapk
Copy link
Member

sapk commented May 6, 2017

It would be better if it was a var like CROSSTAGS that default to netgo and maybe remove it from Dockerfile if not needed anymore. Otherwise LGTM.

@tboerger tboerger added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels May 6, 2017
@lunny
Copy link
Member

lunny commented May 7, 2017

This should be backport to v1.1.2 since it's critical and will affect v1.1.1

@appleboy
Copy link
Member

appleboy commented May 7, 2017

LGTM

@lunny
Copy link
Member

lunny commented May 7, 2017

@sapk but for now it's enough. Maybe another PR to do that.

@sapk
Copy link
Member

sapk commented May 7, 2017

@lunny that why I still LGTM. I think that one time I will search PR with "Otherwise LGTM" for making the changes ^^

@lunny lunny merged commit c864ccf into go-gitea:master May 7, 2017
@tboerger tboerger deleted the build-netgo branch May 7, 2017 16:46
@cez81
Copy link
Contributor

cez81 commented May 15, 2017

This hasn't been backported yet, right?

@lunny
Copy link
Member

lunny commented May 15, 2017

Yes. Maybe someone could do that so that we can put it in v1.1.2

@lunny lunny added the backport/done All backports for this PR have been created label May 16, 2017
cez81 pushed a commit to cez81/gitea that referenced this pull request May 17, 2017
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/done All backports for this PR have been created lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug
Projects
None yet
6 participants