We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd60420 commit 1b3de63Copy full SHA for 1b3de63
1 file changed
Makefile
@@ -35,9 +35,8 @@ format:
35
.PHONY: format
36
37
imports:
38
- which goimports || go install -mod=mod golang.org/x/tools/cmd/goimports@latest
39
- go list ./... | sed "s|^github.com/openshift/cluster-version-operator/||" | xargs goimports -w -local "k8s.io,github.com/openshift"
40
- go list ./... | sed "s|^github.com/openshift/cluster-version-operator/||" | xargs goimports -w -local "github.com/openshift/cluster-version-operator"
+ which gci || go install -mod=mod github.com/daixiang0/gci@latest
+ gci write --custom-order -s standard -s default -s "prefix(k8s.io)" -s "prefix(github.com/openshift)" -s localmodule --skip-vendor .
41
.PHONY: imports
42
43
verify: verify-yaml verify-update
0 commit comments