Skip to content

Commit 493f328

Browse files
committed
Remove setting GO111MODULE=on
1 parent 8e98ee4 commit 493f328

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

.goreleaser.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
env:
2-
- GO111MODULE=on
31
before:
42
hooks:
53
- make clean

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ export DOCKER_BUILDKIT = 1
1212

1313
.PHONY: nginx-prometheus-exporter
1414
nginx-prometheus-exporter:
15-
GO111MODULE=on CGO_ENABLED=0 go build -trimpath -ldflags "-s -w -X main.version=$(VERSION) -X main.commit=$(GIT_COMMIT) -X main.date=$(DATE)" -o nginx-prometheus-exporter
15+
CGO_ENABLED=0 go build -trimpath -ldflags "-s -w -X main.version=$(VERSION) -X main.commit=$(GIT_COMMIT) -X main.date=$(DATE)" -o nginx-prometheus-exporter
1616

1717
.PHONY: lint
1818
lint:
1919
go run github.com/golangci/golangci-lint/cmd/golangci-lint run
2020

2121
.PHONY: test
2222
test:
23-
GO111MODULE=on go test ./...
23+
go test ./...
2424

2525
.PHONY: container
2626
container:

build/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN go mod download
1212
COPY *.go ./
1313
COPY collector ./collector
1414
COPY client ./client
15-
RUN GO111MODULE=on CGO_ENABLED=0 GOOS=linux GOARCH=$TARGETARCH go build -trimpath -a -ldflags "-s -w -X main.version=${VERSION} -X main.commit=${GIT_COMMIT} -X main.date=${DATE}" -o nginx-prometheus-exporter .
15+
RUN CGO_ENABLED=0 GOOS=linux GOARCH=$TARGETARCH go build -trimpath -a -ldflags "-s -w -X main.version=${VERSION} -X main.commit=${GIT_COMMIT} -X main.date=${DATE}" -o nginx-prometheus-exporter .
1616

1717

1818
FROM scratch as intermediate

0 commit comments

Comments
 (0)