You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 26, 2019. It is now read-only.
Problem: Even though testify/require is a library, they have a vendor/ directory (https://github.com/stretchr/testify), IMO it is a bad mistake, but it shouldn't be affecting me in this case.
So, when I run godep save, I don't expect any packages related to this test dependency (or its dependencies) to be even considered.
Actual behavior
Now I run godep save -v which tells me:
godep: Go Version: go1.6
godep: No old Godeps.json found.
godep: Finding dependencies for [.]
godep: Found package: github.com/Azure/custom-script-extension-linux
godep: Deps: bytes encoding/json errors fmt github.com/pkg/errors github.com/xeipuuv/gojsonpointer github.com/xeipuuv/gojsonreference github.com/xeipuuv/gojsonschema io io/ioutil log math net net/http net/url os path path/filepath reflect regexp runtime strconv strings time unicode/utf8
godep: Computing new Godeps.json file
godep: Package (github.com/stretchr/testify/require) not found
Then I go get github.com/stretchr/testify/require, then run it again:
godep: Go Version: go1.6
godep: No old Godeps.json found.
godep: Finding dependencies for [.]
godep: Found package: github.com/Azure/custom-script-extension-linux
godep: Deps: bytes encoding/json errors fmt github.com/pkg/errors github.com/xeipuuv/gojsonpointer github.com/xeipuuv/gojsonreference github.com/xeipuuv/gojsonschema io io/ioutil log math net net/http net/url os path path/filepath reflect regexp runtime strconv strings time unicode/utf8
godep: Computing new Godeps.json file
godep: Package (github.com/davecgh/go-spew/spew) not found
Now it is complaining about github.com/davecgh/go-spew/spew which is a dependency of github.com/stretchr/testify/require and vendored under its vendor/
I'm getting this issue running godep save ../... where it is outputting godep: Package (github.com/davecgh/go-spew/spew) not found too. I found that the following packages require it - is there a workaround or fix? I'm fairly new to godep.
Expected behavior
I have a program which uses these packages:
go get -v ./...
However I use
github.com/stretchr/testify/require
in my tests. Since it is a test depencency, it does not show up ingo get ./...
.Problem: Even though testify/require is a library, they have a
vendor/
directory (https://github.com/stretchr/testify), IMO it is a bad mistake, but it shouldn't be affecting me in this case.So, when I run
godep save
, I don't expect any packages related to this test dependency (or its dependencies) to be even considered.Actual behavior
Now I run
godep save -v
which tells me:Then I go get
github.com/stretchr/testify/require
, then run it again:Now it is complaining about
github.com/davecgh/go-spew/spew
which is a dependency ofgithub.com/stretchr/testify/require
and vendored under itsvendor/
But this should not be godep's concern because it is not supposed to do anything for test dependencies, am I right?
Steps to reproduce behavior
Described above.
godep version
outputgodep v74 (darwin/amd64/go1.6.2)
go version
outputgo version go1.6.2 darwin/amd64
Contents of Godeps.json file
N/A
The text was updated successfully, but these errors were encountered: