-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Makefile: Fix condition for varlink_generate #7854
Conversation
Hm, I guess this needs #7834 to avoid the failure in the gating job |
This should fix the call to the `or` function. Previously the condition always evaluated to the empty string independed of the BULILDTAGS. So `go generate varlink` was allways called. Signed-off-by: Ralf Haferkamp <rhafer@suse.com>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: rhafer The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -620,7 +620,7 @@ endef | |||
|
|||
# $BUILD_TAGS variable is used in hack/golangci-lint.sh | |||
.PHONY: varlink_generate | |||
ifneq (or $(findstring varlink,$(BUILDTAGS)),$(findstring varlink,$(BUILD_TAGS))) | |||
ifneq (,$(or $(findstring varlink,$(BUILDTAGS)),$(findstring varlink,$(BUILD_TAGS)))) |
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.
I am still confused about how this is supposed to work for the make golangci-lint
target. (See the gating failure in https://cirrus-ci.com/task/5884302384693248). It's true that hack/golangci-lint.sh
sets the BUILD_TAGS
variable, but that happens after this part here is executed. So it will never have an effect here.
I guess this only ever worked because the condition was broken?
A friendly reminder that this PR had no activity for 30 days. |
Since we are dropping support for varlink soon, I am going to close this PR. |
This should fix the call to the
or
function. Previously the conditionalways evaluated to the empty string independed of the BULILDTAGS.
So
go generate varlink
was allways called.Signed-off-by: Ralf Haferkamp rhafer@suse.com