-
Notifications
You must be signed in to change notification settings - Fork 47
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: use the same ginkgo version that is in go.mod #1128
Conversation
Signed-off-by: Andrej Krejcir <[email protected]>
Quality Gate passedIssues Measures |
@@ -99,7 +99,8 @@ unittest: generate lint fmt vet manifests metrics-rules-test lint-monitoring | |||
build-functests: | |||
go test -c ./tests | |||
|
|||
GINKGO_VERSION ?= v2.17.1 | |||
GOMOD_PATH ?= ./go.mod | |||
GINKGO_VERSION ?= $(shell grep -E '^\s*github\.com/onsi/ginkgo/v[0-9]+' $(GOMOD_PATH) | awk '{print $$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.
Why it's important to keep it the same ginkgo version? v2 was released 3 yeras ago so likely v3 won't be released anytime soon.
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.
The dependabot updates the version in go.mod
but not in Makefile
. If this version is older, then running make functest
will downgrade back and leave a lot of changes in vendor files.
This is unexpected for user, that make functest
will leave many uncommited git changes in the repo.
It's not about the v3
version, but before this PR, in go.mod
there is v2.19.0
and in Makefile
v2.17.1
.
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.
Understood, thanks! :)
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
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.
Are you going to also update dependabot's config?
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 0xFelix 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 |
No, after this PR, dependabot does not need to be changed. |
ssp-operator/.github/dependabot.yml Line 11 in 567d9f5
I was talking about this ignore. With this being merged, I think we can allow dependabot to update ginkgo now? |
What this PR does / why we need it:
Use the same ginkgo version in
Makefile
that is ingo.mod
.Release note: