Skip to content

Commit

Permalink
lock tools version
Browse files Browse the repository at this point in the history
Signed-off-by: faceair <git@faceair.me>
  • Loading branch information
faceair committed Oct 16, 2020
1 parent 5271b85 commit 051e70a
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 7 deletions.
15 changes: 15 additions & 0 deletions .ci/vgot.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh
if [ $# = 0 ]; then
usage: vgot cmdpackage[@version]... >&2
exit 2
fi
d=`mktemp -d`
cd "$d"
echo 'module temp' > go.mod
for i; do
pkg=`echo $i | sed 's/@.*//'`
go get "$i" &&
go install "$pkg" &&
echo installed `go list -f '{{.ImportPath}}@{{.Module.Version}}' "$pkg"`
done
rm -r "$d"
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ tags
### VisualStudioCode ###
.vscode/*
.history
### Goland ###
.idea
# End of https://www.gitignore.io/api/go,vim,emacs,visualstudiocode
fmt.log
import.log
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ endif

.PHONY: clean
clean: undeploy-kafka undeploy-es-operator undeploy-prometheus-operator
@rm -f deploy/test/*.yaml
@rm -f deploy/test/*.yaml
@if [ -d deploy/test ]; then rmdir deploy/test ; fi
@kubectl delete -f ./test/cassandra.yml --ignore-not-found=true -n $(STORAGE_NAMESPACE) || true
@kubectl delete -f ./test/elasticsearch.yml --ignore-not-found=true -n $(STORAGE_NAMESPACE) || true
Expand All @@ -310,7 +310,7 @@ crd:
ingress:
@minikube addons enable ingress

.PHONY: generate
.PHONY: generate
generate: internal-generate format

.PHONY: internal-generate
Expand All @@ -337,13 +337,13 @@ install-sdk:

.PHONY: install-tools
install-tools:
@${GO_FLAGS} go install \
@${GO_FLAGS} ./.ci/vgot.sh \
golang.org/x/lint/golint \
github.com/securego/gosec/cmd/gosec \
golang.org/x/tools/cmd/goimports \
sigs.k8s.io/controller-tools/cmd/controller-gen \
k8s.io/code-generator/cmd/client-gen \
k8s.io/kube-openapi/cmd/openapi-gen
github.com/securego/gosec/cmd/gosec@v0.0.0-20191008095658-28c1128b7336 \
sigs.k8s.io/controller-tools/cmd/controller-gen@v0.2.4 \
k8s.io/code-generator/cmd/client-gen@v0.18.6 \
k8s.io/kube-openapi/cmd/openapi-gen@v0.0.0-20200410145947-61e04a5be9a6

.PHONY: install
install: install-sdk install-tools
Expand Down

0 comments on commit 051e70a

Please sign in to comment.