chore: use go install in 1.17+ (#123)

This commit is contained in:
andremarianiello 2023-03-27 13:35:39 -04:00 committed by GitHub
parent e1e32e61c1
commit 8d57beb5ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View File

@ -21,7 +21,6 @@ jobs:
build:
docker:
- <<: *golang_image
working_directory: /go/src/github.com/ory/hydra-maester
steps:
- checkout
- run:
@ -30,7 +29,6 @@ jobs:
test:
docker:
- <<: *golang_image
working_directory: /go/src/github.com/ory/hydra-maester
steps:
- checkout
- run:
@ -68,7 +66,6 @@ jobs:
release:
docker:
- <<: *golang_image
working_directory: /go/src/github.com/ory/hydra-maester
steps:
- checkout
- run:

View File

@ -54,7 +54,7 @@ kind-deploy: manager manifests docker-build-notest kind-start
.PHONY: kind-test
kind-test: kind-deploy
kubectl config set-context kind-kind
go get github.com/onsi/ginkgo/ginkgo
go install github.com/onsi/ginkgo/ginkgo@latest
ginkgo -v ./controllers/...
# Run integration tests on local KIND cluster
@ -124,7 +124,7 @@ docker-push:
.PHONY: controller-gen
controller-gen:
ifeq (, $(shell which controller-gen))
go get sigs.k8s.io/controller-tools/cmd/controller-gen@v0.5.0
go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.5.0
CONTROLLER_GEN=$(shell which controller-gen)
else
CONTROLLER_GEN=$(shell which controller-gen)