File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ RUN cd /usr/local/bin && unzip vault_${vault_version}_linux_amd64.zip
1010
1111WORKDIR /go/src/github.com/fabiolb/fabio
1212COPY . .
13- RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go test -ldflags "-s -w" ./...
14- RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w"
13+ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go test -mod=vendor -ldflags "-s -w" ./...
14+ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -mod=vendor - ldflags "-s -w"
1515
1616FROM alpine:3.8
1717RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*
Original file line number Diff line number Diff line change @@ -40,11 +40,11 @@ help:
4040
4141# build compiles fabio and the test dependencies
4242build : gofmt
43- go build
43+ go build -mod=vendor
4444
4545# test runs the tests
4646test : build
47- go test -v -test.timeout 15s ` go list . /... | grep -v ' /vendor/ ' `
47+ go test -mod=vendor - v -test.timeout 15s /...
4848
4949# gofmt runs gofmt on the code
5050gofmt :
5656
5757# install runs go install
5858install :
59- go install $(GOFLAGS )
59+ go install -mod=vendor $(GOFLAGS )
6060
6161# pkg builds a fabio.tar.gz package with only fabio in it
6262pkg : build test
@@ -119,7 +119,7 @@ codeship:
119119
120120# clean removes intermediate files
121121clean :
122- go clean
122+ go clean -mod=vendor
123123 rm -rf pkg dist fabio
124124 find . -name ' *.test' -delete
125125
You can’t perform that action at this time.
0 commit comments