-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
make sure that 'ldflags' are space-safe #57222
make sure that 'ldflags' are space-safe #57222
Conversation
@xialonglee: Adding do-not-merge/release-note-label-needed because the release note process has not been followed. One of the following labels is required "release-note", "release-note-action-required", or "release-note-none". Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/release-note-none |
/retest |
@xialonglee: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
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.
Thanks for this PR! One small suggestion.
@@ -133,8 +133,8 @@ kube::version::ldflag() { | |||
local val=${2} |
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.
maybe double-quote these, too?
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.
you mean change it like this ?
local val="${2}"
I tested it, it didn't make any change of the value here ...
Seems only use single-quote to qoute the whole importpath.name=value
like:
-X 'k8s.io/kubernetes/pkg/version.gitTreeState=git archive'
or only qoute the value like:
-X k8s.io/kubernetes/pkg/version.gitTreeState='git archive'
could solve the problem of the value which included spaces.
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.
yeah, I think you're right - this PR is sufficient as-is. Thanks!
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ixdy, xialonglee Associated issue: #56216 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/retest |
/retest Review the full test history for this PR. |
Automatic merge from submit-queue (batch tested with PRs 55475, 57155, 57260, 57222). If you want to cherry-pick this change to another branch, please follow the instructions here. |
What this PR does / why we need it:
Recently I met the problem as #56216 described, I download the source-tar of 1.8.5 and run
make
command failed because of invalid ldflag:-X k8s.io/kubernetes/pkg/version.gitTreeState=git archive
Though #56249 has change version string
git archive
toarchive
, i think we should avoid this problem happen again.cc @ixdy
Release note: NONE