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 was archived by the owner on Sep 9, 2020. It is now read-only.
There are missing packages when I use dep init, then dep ensure and try to build.
Here is how to reproduce:
Create test.go:
package test
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestSomething(t *testing.T) {
var a string = "Hello"
var b string = "Hello"
assert.Equal(t, a, b, "The two words should be the same.")
}
Build it...
aviau@cranberry:~/go/src/github.com/lanets/test$ go build ./...
aviau@cranberry:~/go/src/github.com/lanets/test$
That works!
Now lets vendor my deps:
aviau@cranberry:~/go/src/github.com/lanets/test$ dep init
Searching GOPATH for projects...
Using master as constraint for direct dep github.com/stretchr/testify
Locking in master (4d4bfba) for direct dep github.com/stretchr/testify
Locking in v1.1.0 (346938d) for transitive dep github.com/davecgh/go-spew
Following dependencies were not found in GOPATH. Dep will use the most recent versions of these projects.
github.com/pmezard/go-difflib
aviau@cranberry:~/go/src/github.com/lanets/test$ dep ensure
and build...
aviau@cranberry:~/go/src/github.com/lanets/test$ go build ./...
vendor/github.com/stretchr/testify/mock/mock.go:14:2: cannot find package "github.com/stretchr/objx" in any of:
/home/aviau/go/src/github.com/lanets/test/vendor/github.com/stretchr/objx (vendor tree)
/usr/lib/go-1.7/src/github.com/stretchr/objx (from $GOROOT)
/home/aviau/go/src/github.com/stretchr/objx (from $GOPATH)
aviau@cranberry:~/go/src/github.com/lanets/test$
My Gopkg.toml
[[constraint]]
name = "github.com/pmezard/go-difflib"
version = "1.0.0"
[[constraint]]
branch = "master"
name = "github.com/stretchr/testify"
Hello!
There are missing packages when I use
dep init
, thendep ensure
and try to build.Here is how to reproduce:
Create test.go:
Build it...
That works!
Now lets vendor my deps:
and build...
My Gopkg.toml
Gopkg.lock:
It looks like go deps is not downloading github.com/stretchr/objx, which it should.
Note that this package looks like its vendored by github.com/stretchr/testify here: https://github.com/stretchr/testify/tree/master/vendor/github.com/stretchr/objx
The text was updated successfully, but these errors were encountered: