mardi 10 juillet 2018

Go testing vendoring

I am trying to run go tests on a project I am working on. Here is my directory tree structure.

├── Gopkg.lock
├── Gopkg.toml
├── README.md
├── cmd
│   ├── pwr.go
│   ├── setup.go
│   ├── ssh.go
│   └── tunnel.go
├── cpu.prof
├── debug
├── internal
│   ├── argutil.go
│   ├── awsutil
│   │   └── awsutil.go
│   ├── configutil
│   │   └── configutil.go
│   └── sshutil
│       ├── debug.test
│       ├── keyrotation.go
│       ├── sshutil.go
│       └── sshutil_test.go
├── main
├── main.go
├── mem.prof
├── pkg
│   └── dnsutil
│       └── dnsutil.go
└── vendor

The issue that I am running into is that I have all my external packages under the vendor directory. When I try to run a test by doing go test, my test times out, but in the past it has failed to find the directories. Please help me troubleshoot this!

Aucun commentaire:

Enregistrer un commentaire