File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ all: manager
1818
1919# Run tests
2020KUBEBUILDER_ASSETS? ="$(shell $(ENVTEST ) --arch=$(ENVTEST_ARCH ) use -i $(ENVTEST_KUBERNETES_VERSION ) --bin-dir=$(ENVTEST_ASSETS_DIR ) -p path) "
21- test : generate fmt vet manifests install-envtest
21+ test : generate tidy fmt vet manifests install-envtest
2222 KUBEBUILDER_ASSETS=$(KUBEBUILDER_ASSETS ) go test ./... -coverprofile cover.out
2323
2424# Build manager binary
@@ -46,6 +46,10 @@ deploy: manifests
4646manifests : controller-gen
4747 $(CONTROLLER_GEN ) $(CRD_OPTIONS ) rbac:roleName=source-reader webhook paths=" ./..." output:crd:artifacts:config=config/crd/bases
4848
49+ # Run go tidy to cleanup go.mod
50+ tidy :
51+ go mod tidy
52+
4953# Run go fmt against code
5054fmt :
5155 go fmt ./...
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ require (
66 github.com/fluxcd/pkg/runtime v0.12.3
77 github.com/fluxcd/pkg/untar v0.1.0
88 github.com/fluxcd/source-controller/api v0.20.1
9- github.com/go-logr/logr v1.2.2
109 github.com/spf13/pflag v1.0.5
1110 k8s.io/apimachinery v0.23.1
1211 k8s.io/client-go v0.23.1
@@ -22,6 +21,7 @@ require (
2221 github.com/fluxcd/pkg/apis/acl v0.0.3 // indirect
2322 github.com/fluxcd/pkg/apis/meta v0.10.2 // indirect
2423 github.com/fsnotify/fsnotify v1.5.1 // indirect
24+ github.com/go-logr/logr v1.2.2 // indirect
2525 github.com/go-logr/zapr v1.2.0 // indirect
2626 github.com/gogo/protobuf v1.3.2 // indirect
2727 github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
You can’t perform that action at this time.
0 commit comments