-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
Move "-s -w" flags to GOLDFLAGS as an overridable default. #76651
Move "-s -w" flags to GOLDFLAGS as an overridable default. #76651
Conversation
Following up from the comments in https://github.com/kubernetes/kubernetes/pull/70276/files#r232376981 |
seems to work?
|
8561ef0
to
1ece630
Compare
If GOLDFLAGS is set, whether it is empty or not, we should honor it. Only if the GOLDFLAGS is totally not set, then we use "-s -w" See Parameter Expansion section in the urls below: https://stackoverflow.com/questions/3601515/how-to-check-if-a-variable-is-set-in-bash/16753536 http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_02 Change-Id: I826c34efc63c77f0e3e9677fff30a3eb2219a377
1ece630
to
7e01702
Compare
/retest |
/test pull-kubernetes-e2e-gce-device-plugin-gpu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
/hold
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: BenTheElder, dims The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@dims if you want to wait for them go ahead, AFAICT this change is good, otherwise feel free to |
/hold cancel thanks! @BenTheElder |
Co-Authored-By: @Chenditang chendt.fnst@cn.fujitsu.com
If GOLDFLAGS is set, whether it is empty or not, we should honor it.
Only if the GOLDFLAGS is totally not set, then we use "-s -w"
See Parameter Expansion section in the urls below:
https://stackoverflow.com/questions/3601515/how-to-check-if-a-variable-is-set-in-bash/16753536
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_02
Change-Id: I826c34efc63c77f0e3e9677fff30a3eb2219a377
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
GOLDFLAGS can be specified when compiling, so it is better to set "-s -w" as the overridable default value of GOLDFLAGS.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: