-
Notifications
You must be signed in to change notification settings - Fork 39
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
build: use go install instead of depricated go get #187
Conversation
73327a4
to
5752dd3
Compare
/test lvm-operator-bundle-e2e-aws |
1 similar comment
/test lvm-operator-bundle-e2e-aws |
@@ -210,20 +210,11 @@ jsonnet: ## Download jsonnet locally if necessary. | |||
GINKGO = $(shell pwd)/bin/ginkgo | |||
ginkgo: ## Download ginkgo and gomega locally if necessary. | |||
$(call go-get-tool,$(GINKGO),github.com/onsi/ginkgo/v2/ginkgo) | |||
$(call go-get-tool,$(GOMEGA),github.com/onsi/gomega/...) |
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.
- is removal of GOMEGA installation intentional?
- is it due to GINKGO also installing GOMEGA?
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.
is removal of GOMEGA installation intentional?
yes it is, because we don't require a binary of GOMEGA and we already have it in our go.mod
@@ -210,20 +210,11 @@ jsonnet: ## Download jsonnet locally if necessary. | |||
GINKGO = $(shell pwd)/bin/ginkgo | |||
ginkgo: ## Download ginkgo and gomega locally if necessary. |
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.
ginkgo: ## Download ginkgo and gomega locally if necessary. | |
ginkgo: ## Download ginkgo locally if necessary. |
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.
Please update the comment.
Can you include this as a part of a PR to use go 1.18? |
/test lvm-operator-bundle-e2e-aws |
2 similar comments
/test lvm-operator-bundle-e2e-aws |
/test lvm-operator-bundle-e2e-aws |
/hold |
@nbalacha As discussed over a meet updated the PR, I Will create a new PR for the 1.18 specifically |
/test lvm-operator-bundle-e2e-aws |
/test lvm-operator-bundle-e2e-aws |
Nitin can you please add the missing go.sum entry too in this PR. So that it can pass the e2e. |
/test lvm-operator-bundle-e2e-aws |
ref: https://go.dev/doc/go-get-install-deprecation Signed-off-by: Nitin Goyal <nigoyal@redhat.com>
older kustomize version fails during go install Signed-off-by: Nitin Goyal <nigoyal@redhat.com>
We are not using gomega as a binary and using it only as a lib which is already present in go.mod. Also go install fails downloading gomega as there is no binary. Signed-off-by: Nitin Goyal <nigoyal@redhat.com>
6a6222d
to
e79ae10
Compare
720b35d
to
b0eab53
Compare
go install does require a version to be present to download any binary Signed-off-by: Nitin Goyal <nigoyal@redhat.com>
b0eab53
to
2e140aa
Compare
/hold cancel |
@@ -214,21 +214,12 @@ jsonnet: ## Download jsonnet locally if necessary. | |||
|
|||
GINKGO = $(shell pwd)/bin/ginkgo | |||
ginkgo: ## Download ginkgo and gomega locally if necessary. | |||
$(call go-get-tool,$(GINKGO),github.com/onsi/ginkgo/v2/ginkgo) | |||
$(call go-get-tool,$(GOMEGA),github.com/onsi/gomega/...) | |||
$(call go-get-tool,$(GINKGO),github.com/onsi/ginkgo/v2/ginkgo@v2) |
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.
Should this use the latest version available? Currently it is https://github.com/onsi/ginkgo/releases/tag/v2.1.6
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.
It is picking up the latest one only as we are mentioning the full version. So whatever is latest in v2 it will pick that up.
$ ./bin/ginkgo version
Ginkgo Version 2.1.6
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: iamniting, nbalacha, sp98, Yuggupta27 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 |
ref: https://go.dev/doc/go-get-install-deprecation
Signed-off-by: Nitin Goyal nigoyal@redhat.com