Trying to vendor a package with a dependency to gopkg.in #1119
Description
Hi,
I am trying to vendor a repository that has a dependency on hashicorp nomad project. I am getting issues with the dependency on gopkg.in and seem unable to solve them.
If i run dep init
in my repository i get a Solve error and no generated files. i.e. there is no toml file or vendor file generated so i cannot edit the dependencies.
The error I get is:
No versions of gopkg.in/tomb.v2 met constraints: v1: Could not introduce gopkg.in/tomb.v2@v1, as its subpackage gopkg.in/tomb.v2 is missing. (Package is required by github.com/hashicorp/nomad@f-driver.)\
An example main.go that replicates this problem is:
package main
import (
"github.com/hashicorp/nomad/api"
"github.com/prometheus/common/log"
"github.com/hashicorp/nomad/command"
)
func main() {
client, err := api.NewClient(api.DefaultConfig())
if err != nil {
log.Fatal(err)
}
log.Info(command.JobGetter{})
log.Info(client.Agent().NodeName())
}
What version of dep
are you using (dep version
)?
dep:
version : devel
build date :
git hash :
go version : go1.8.3
go compiler : gc
platform : darwin/amd64
What dep
command did you run?
dep init
What did you see instead?
No versions of gopkg.in/tomb.v2 met constraints: v1: Could not introduce gopkg.in/tomb.v2@v1, as its subpackage gopkg.in/tomb.v2 is missing. (Package is required by github.com/hashicorp/nomad@f-driver.)\