Commit a8fbd066 authored by Steven Allen's avatar Steven Allen

make: move all test deps to a separate module

1. This means those deps don't get pulled in unless we actually need to test.
2. It means we can cordon all the golangci-lint module replace hacks off into a
   separate package.
parent 7555786e
...@@ -3,7 +3,6 @@ module github.com/ipfs/go-ipfs ...@@ -3,7 +3,6 @@ module github.com/ipfs/go-ipfs
require ( require (
bazil.org/fuse v0.0.0-20180421153158-65cc252bf669 bazil.org/fuse v0.0.0-20180421153158-65cc252bf669
github.com/AndreasBriese/bbloom v0.0.0-20190823232136-616930265c33 // indirect github.com/AndreasBriese/bbloom v0.0.0-20190823232136-616930265c33 // indirect
github.com/Kubuxu/gocovmerge v0.0.0-20161216165753-7ecaa51963cd
github.com/blang/semver v3.5.1+incompatible github.com/blang/semver v3.5.1+incompatible
github.com/bren2010/proquint v0.0.0-20160323162903-38337c27106d github.com/bren2010/proquint v0.0.0-20160323162903-38337c27106d
github.com/dustin/go-humanize v1.0.0 github.com/dustin/go-humanize v1.0.0
...@@ -12,7 +11,6 @@ require ( ...@@ -12,7 +11,6 @@ require (
github.com/fsnotify/fsnotify v1.4.7 github.com/fsnotify/fsnotify v1.4.7
github.com/go-bindata/go-bindata v3.1.1+incompatible github.com/go-bindata/go-bindata v3.1.1+incompatible
github.com/gogo/protobuf v1.2.1 github.com/gogo/protobuf v1.2.1
github.com/golangci/golangci-lint v1.17.1
github.com/hashicorp/go-multierror v1.0.0 github.com/hashicorp/go-multierror v1.0.0
github.com/hashicorp/golang-lru v0.5.3 github.com/hashicorp/golang-lru v0.5.3
github.com/ipfs/go-bitswap v0.1.8 github.com/ipfs/go-bitswap v0.1.8
...@@ -52,13 +50,9 @@ require ( ...@@ -52,13 +50,9 @@ require (
github.com/ipfs/go-path v0.0.7 github.com/ipfs/go-path v0.0.7
github.com/ipfs/go-unixfs v0.2.1 github.com/ipfs/go-unixfs v0.2.1
github.com/ipfs/go-verifcid v0.0.1 github.com/ipfs/go-verifcid v0.0.1
github.com/ipfs/hang-fds v0.0.1
github.com/ipfs/interface-go-ipfs-core v0.2.2 github.com/ipfs/interface-go-ipfs-core v0.2.2
github.com/ipfs/iptb v1.4.0
github.com/ipfs/iptb-plugins v0.1.0
github.com/jbenet/go-is-domain v1.0.2 github.com/jbenet/go-is-domain v1.0.2
github.com/jbenet/go-random v0.0.0-20190219211222-123a90aedc0c github.com/jbenet/go-random v0.0.0-20190219211222-123a90aedc0c
github.com/jbenet/go-random-files v0.0.0-20190219210431-31b3f20ebded
github.com/jbenet/go-temp-err-catcher v0.0.0-20150120210811-aac704a3f4f2 github.com/jbenet/go-temp-err-catcher v0.0.0-20150120210811-aac704a3f4f2
github.com/jbenet/goprocess v0.1.3 github.com/jbenet/goprocess v0.1.3
github.com/libp2p/go-eventbus v0.1.0 // indirect github.com/libp2p/go-eventbus v0.1.0 // indirect
...@@ -109,13 +103,10 @@ require ( ...@@ -109,13 +103,10 @@ require (
go.uber.org/goleak v0.10.0 // indirect go.uber.org/goleak v0.10.0 // indirect
go.uber.org/multierr v1.1.0 // indirect go.uber.org/multierr v1.1.0 // indirect
go4.org v0.0.0-20190313082347-94abd6928b1d // indirect go4.org v0.0.0-20190313082347-94abd6928b1d // indirect
golang.org/x/sync v0.0.0-20190423024810-112230192c58 // indirect
golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb
golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac // indirect
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7 // indirect golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7 // indirect
gopkg.in/cheggaaa/pb.v1 v1.0.28 gopkg.in/cheggaaa/pb.v1 v1.0.28
gotest.tools/gotestsum v0.3.4
) )
replace github.com/golangci/golangci-lint => github.com/mhutchinson/golangci-lint v1.17.2-0.20190819125825-d18f2136e32b
go 1.12 go 1.12
This diff is collapsed.
...@@ -2,60 +2,80 @@ include mk/header.mk ...@@ -2,60 +2,80 @@ include mk/header.mk
TGTS_$(d) := TGTS_$(d) :=
$(d)/pollEndpoint: thirdparty/pollEndpoint define go-build-testdep
$(go-build-relative) OUT="$(CURDIR)/$@" ; \
cd "test/dependencies" ; \
$(GOCC) build $(go-flags-with-tags) -o "$${OUT}" "$<"
endef
.PHONY: github.com/ipfs/go-ipfs/test/dependencies/pollEndpoint
$(d)/pollEndpoint: github.com/ipfs/go-ipfs/test/dependencies/pollEndpoint
$(go-build-testdep)
TGTS_$(d) += $(d)/pollEndpoint TGTS_$(d) += $(d)/pollEndpoint
$(d)/go-sleep: test/dependencies/go-sleep .PHONY: github.com/ipfs/go-ipfs/test/dependencies/go-sleep
$(go-build-relative) $(d)/go-sleep: github.com/ipfs/go-ipfs/test/dependencies/go-sleep
$(go-build-testdep)
TGTS_$(d) += $(d)/go-sleep TGTS_$(d) += $(d)/go-sleep
$(d)/go-timeout: test/dependencies/go-timeout .PHONY: github.com/ipfs/go-ipfs/test/dependencies/go-timeout
$(go-build-relative) $(d)/go-timeout: github.com/ipfs/go-ipfs/test/dependencies/go-timeout
$(go-build-testdep)
TGTS_$(d) += $(d)/go-timeout TGTS_$(d) += $(d)/go-timeout
$(d)/iptb: test/dependencies/iptb .PHONY: github.com/ipfs/go-ipfs/test/dependencies/iptb
$(go-build-relative) $(d)/iptb: github.com/ipfs/go-ipfs/test/dependencies/iptb
$(go-build-testdep)
TGTS_$(d) += $(d)/iptb TGTS_$(d) += $(d)/iptb
$(d)/ma-pipe-unidir: test/dependencies/ma-pipe-unidir .PHONY: github.com/ipfs/go-ipfs/test/dependencies/ma-pipe-unidir
$(go-build-relative) $(d)/ma-pipe-unidir: github.com/ipfs/go-ipfs/test/dependencies/ma-pipe-unidir
$(go-build-testdep)
TGTS_$(d) += $(d)/ma-pipe-unidir TGTS_$(d) += $(d)/ma-pipe-unidir
$(d)/json-to-junit: test/dependencies/json-to-junit .PHONY: github.com/ipfs/go-ipfs/test/dependencies/json-to-junit
$(go-build-relative) $(d)/json-to-junit: github.com/ipfs/go-ipfs/test/dependencies/json-to-junit
$(go-build-testdep)
TGTS_$(d) += $(d)/json-to-junit TGTS_$(d) += $(d)/json-to-junit
$(d)/gotestsum: .PHONY: gotest.tools/gotestsum
$(call go-build,gotest.tools/gotestsum) $(d)/gotestsum: gotest.tools/gotestsum
$(go-build-testdep)
TGTS_$(d) += $(d)/gotestsum TGTS_$(d) += $(d)/gotestsum
$(d)/hang-fds: .PHONY: github.com/ipfs/hang-fds
$(call go-build,github.com/ipfs/hang-fds) $(d)/hang-fds: github.com/ipfs/hang-fds
$(go-build-testdep)
TGTS_$(d) += $(d)/hang-fds TGTS_$(d) += $(d)/hang-fds
$(d)/multihash: .PHONY: github.com/multiformats/go-multihash/multihash
$(call go-build,github.com/multiformats/go-multihash/multihash) $(d)/multihash: github.com/multiformats/go-multihash/multihash
$(go-build-testdep)
TGTS_$(d) += $(d)/multihash TGTS_$(d) += $(d)/multihash
$(d)/cid-fmt: .PHONY: github.com/ipfs/go-cidutil/cid-fmt
$(call go-build,github.com/ipfs/go-cidutil/cid-fmt) $(d)/cid-fmt: github.com/ipfs/go-cidutil/cid-fmt
$(go-build-testdep)
TGTS_$(d) += $(d)/cid-fmt TGTS_$(d) += $(d)/cid-fmt
$(d)/random: .PHONY: github.com/jbenet/go-random/random
$(call go-build,github.com/jbenet/go-random/random) $(d)/random: github.com/jbenet/go-random/random
$(go-build-testdep)
TGTS_$(d) += $(d)/random TGTS_$(d) += $(d)/random
$(d)/random-files: .PHONY: github.com/jbenet/go-random-files/random-files
$(call go-build,github.com/jbenet/go-random-files/random-files) $(d)/random-files: github.com/jbenet/go-random-files/random-files
$(go-build-testdep)
TGTS_$(d) += $(d)/random-files TGTS_$(d) += $(d)/random-files
$(d)/gocovmerge: .PHONY: github.com/Kubuxu/gocovmerge
$(call go-build,github.com/Kubuxu/gocovmerge) $(d)/gocovmerge: github.com/Kubuxu/gocovmerge
$(go-build-testdep)
TGTS_$(d) += $(d)/gocovmerge TGTS_$(d) += $(d)/gocovmerge
$(d)/golangci-lint: .PHONY: github.com/golangci/golangci-lint/cmd/golangci-lint
$(call go-build,github.com/golangci/golangci-lint/cmd/golangci-lint) $(d)/golangci-lint: github.com/golangci/golangci-lint/cmd/golangci-lint
$(go-build-testdep)
TGTS_$(d) += $(d)/golangci-lint TGTS_$(d) += $(d)/golangci-lint
$(TGTS_$(d)): $$(DEPS_GO) $(TGTS_$(d)): $$(DEPS_GO)
......
module github.com/ipfs/go-ipfs/test/dependencies
go 1.13
require (
github.com/Kubuxu/gocovmerge v0.0.0-20161216165753-7ecaa51963cd
github.com/golangci/golangci-lint v1.18.0
github.com/ipfs/go-cidutil v0.0.2
github.com/ipfs/go-log v0.0.1
github.com/ipfs/hang-fds v0.0.1
github.com/ipfs/iptb v1.4.0
github.com/ipfs/iptb-plugins v0.2.0
github.com/jbenet/go-random v0.0.0-20190219211222-123a90aedc0c
github.com/jbenet/go-random-files v0.0.0-20190219210431-31b3f20ebded
github.com/multiformats/go-multiaddr v0.0.4
github.com/multiformats/go-multiaddr-net v0.0.1
github.com/multiformats/go-multihash v0.0.7
gotest.tools/gotestsum v0.3.5
)
// golangci-lint likes replace directives.
replace (
github.com/ultraware/funlen => github.com/golangci/funlen v0.0.0-20190909161642-5e59b9546114
golang.org/x/tools => github.com/golangci/tools v0.0.0-20190910062050-3540c026601b
)
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment