Skip to content

Commit

Permalink
added clean task to Makefile
Browse files Browse the repository at this point in the history
changed go get by go install
  • Loading branch information
kamunas committed Nov 6, 2024
1 parent db9469e commit e063e18
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,13 @@ KUSTOMIZE = $(shell pwd)/bin/kustomize
kustomize: ## Download kustomize locally if necessary.
$(call go-get-tool,$(KUSTOMIZE),sigs.k8s.io/kustomize/kustomize/[email protected])

clean:
@echo "Clean temp files"
rm -rf bin/*
rm -rf testbin/*
rm -rf cover.out


# go-get-tool will 'go get' any package $2 and install it to $1.
PROJECT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))
define go-get-tool
Expand All @@ -130,7 +137,9 @@ TMP_DIR=$$(mktemp -d) ;\
cd $$TMP_DIR ;\
go mod init tmp ;\
echo "Downloading $(2)" ;\
GOBIN=$(PROJECT_DIR)/bin go get $(2) ;\
GOBIN=$(PROJECT_DIR)/bin go install $(2) ;\
rm -rf $$TMP_DIR ;\
}
endef


4 changes: 2 additions & 2 deletions api/v1alpha1/groupversion_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ limitations under the License.
*/

// Package v1alpha1 contains API Schema definitions for the secretsmanager v1alpha1 API group
//+kubebuilder:object:generate=true
//+groupName=secrets-manager.tuenti.io
// +kubebuilder:object:generate=true
// +groupName=secrets-manager.tuenti.io
package v1alpha1

import (
Expand Down

0 comments on commit e063e18

Please sign in to comment.