Skip to content

testImports fail to install with glide install and glide.lock present #517

@sinbad

Description

@sinbad

I have a project which doesn't have any dependencies except for Ginkgo and Gomega for tests. My glide.yaml is (placeholder package_path since this is a private repo):

package: <package_path>
import: []
testImport:
- package: github.com/onsi/ginkgo
  version: ^1.2.0
- package: github.com/onsi/gomega
  version: ^1.0.0

I also have a glide.lock file which is populated with the latest versions from my dev machine.

glide install fails as follows:

> glide --debug install
[DEBUG] Creating vendor
[INFO]  No dependencies found. Nothing installed.
[INFO]  Setting references.
[ERROR] Failed to set version on github.com/onsi/gomega to a78ae492d53aad5a7a232d0d0462c14c400e3ee7: open /go/src/<package_path>/vendor/github.com/onsi/gomega: no such file or directory
[ERROR] Failed to set version on github.com/onsi/ginkgo to 462326b1628e124b23f42e87a8f2750e3c4e2d24: open /go/src/<package_path>/vendor/github.com/onsi/ginkgo: no such file or directory

It appears that it's skipping test dependencies during the download phase but not afterward. I can't find any option to make it download test deps, only --skip-test which seems to be the reverse.

Changing to glide up works, but I believe this is more costly, and I shouldn't have to make my CI build re-scan the dependencies? Bug?

Thanks for a great tool 😄

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions