Skip to content

Commit bead978

Browse files
committed
workaround for goautoneg dependency issue with go mod
1 parent 71fcbf0 commit bead978

File tree

4 files changed

+7
-57
lines changed

4 files changed

+7
-57
lines changed

Diff for: .travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ cache:
77
- $HOME/.cache/go-build
88

99
go:
10-
- 1.11.2
10+
- 1.11.x
1111

1212
env:
1313
global:

Diff for: Makefile

+3-1
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,16 @@ format:
3131
$(Q)go fmt $(PKGS)
3232

3333
dep:
34+
$(Q)touch ./vendor/github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg/go.mod # Workaround for https://github.com/golang/go/issues/30934
3435
ifeq ($(BUILD_VERBOSE),1)
3536
GO111MODULE=on go mod vendor -v
3637
else
3738
$(Q)GO111MODULE=on go mod vendor
3839
endif
3940

4041
dep-update:
41-
$(Q)go get -u -v
42+
$(Q)touch ./vendor/github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg/go.mod # Workaround for https://github.com/golang/go/issues/30934
43+
$(Q)GO111MODULE=on go get -u -v
4244

4345
clean:
4446
$(Q)rm -rf build

Diff for: go.mod

+3
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,6 @@ replace (
9797
k8s.io/kube-aggregator => k8s.io/kube-aggregator v0.0.0-20190202012332-e37a94925e5c
9898
k8s.io/kube-openapi => k8s.io/kube-openapi v0.0.0-20180711000925-0cf8f7e6ed1d
9999
)
100+
101+
// Workaround for https://github.com/golang/go/issues/30934
102+
replace bitbucket.org/ww/goautoneg => ./vendor/github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg

0 commit comments

Comments
 (0)