Skip to content

Commit

Permalink
workaround for goautoneg dependency issue with go mod
Browse files Browse the repository at this point in the history
  • Loading branch information
estroz committed Mar 20, 2019
1 parent 71fcbf0 commit bead978
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 57 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ cache:
- $HOME/.cache/go-build

go:
- 1.11.2
- 1.11.x

env:
global:
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,16 @@ format:
$(Q)go fmt $(PKGS)

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

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

clean:
$(Q)rm -rf build
Expand Down
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,6 @@ replace (
k8s.io/kube-aggregator => k8s.io/kube-aggregator v0.0.0-20190202012332-e37a94925e5c
k8s.io/kube-openapi => k8s.io/kube-openapi v0.0.0-20180711000925-0cf8f7e6ed1d
)

// Workaround for https://github.com/golang/go/issues/30934
replace bitbucket.org/ww/goautoneg => ./vendor/github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg
Loading

0 comments on commit bead978

Please sign in to comment.