Migrate from glide to official dependencies management tool: Go Module (#1136)
This commit is contained in:
+2
-1
@@ -1,3 +1,4 @@
|
||||
FROM golang:1.10.2
|
||||
FROM golang:1.11.6
|
||||
ENV GO111MODULE on
|
||||
RUN wget -qO- https://download.docker.com/linux/static/stable/x86_64/docker-17.03.0-ce.tgz | tar xvz -C /usr/local/bin/ --strip 1
|
||||
RUN wget -qO- https://storage.googleapis.com/kubernetes-helm/helm-v2.9.1-linux-amd64.tar.gz | tar xvz -C /usr/local/bin/ --strip 1
|
||||
|
||||
@@ -13,7 +13,7 @@ find_files() {
|
||||
}
|
||||
|
||||
GOFMT="gofmt -s"
|
||||
bad_files=$(find_files | grep -v '.glide/cache' | xargs $GOFMT -l)
|
||||
bad_files=$(find_files | xargs $GOFMT -l)
|
||||
if [[ -n "${bad_files}" ]]; then
|
||||
echo "!!! '$GOFMT' needs to be run on the following files: "
|
||||
echo "${bad_files}"
|
||||
|
||||
@@ -12,4 +12,4 @@ find_files() {
|
||||
\) -name '*.go'
|
||||
}
|
||||
|
||||
find_files | grep -v '.glide/cache' | xargs -I@ bash -c "go tool vet @"
|
||||
find_files | xargs -I@ bash -c "go tool vet @"
|
||||
|
||||
Reference in New Issue
Block a user