From 8d57beb5bab8b3af8f83c7ad0569d5902c196720 Mon Sep 17 00:00:00 2001 From: andremarianiello Date: Mon, 27 Mar 2023 13:35:39 -0400 Subject: [PATCH] chore: use go install in 1.17+ (#123) --- .circleci/config.yml | 3 --- Makefile | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 23666db..ae5dbbf 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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: diff --git a/Makefile b/Makefile index d2a1547..7fd295b 100644 --- a/Makefile +++ b/Makefile @@ -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)