Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Could not introduce package, as its subpackage does not contain usable Go code #899

@ChimeraCoder

Description

@ChimeraCoder

We're migrating Veneur (github.com/stripe/veneur) to dep, but getting an error on master (current: 08b7908a70f4c76fd8a84635415a477811605e39).

The error appears similar to #387 - it complains that the subpackage stathat.com/c/consistent doesn't contain usable Go code, which... well, isn't true, either for the vendored version in the repository or for the version in my GOPATH.

This happens on two different machines with completely different Go setups, so it doesn't look like a local issue.

What version of Go (go version) and dep (git describe --tags) are you using?

go version go1.8.3, both darwin/amd64 and linux/amdx64

v0.1.0-286-g0a63c47

What dep command did you run?

$ dep init -v
Root project is "github.com/stripe/veneur"
 15 transitively valid internal packages
 26 external packages imported from 18 projects
(0)   ✓ select (root)
(1)     ? attempt github.com/golang/protobuf with 1 pkgs; 1 versions to try
(1)         try github.com/golang/protobuf@master
(1)     ✓ select github.com/golang/protobuf@master w/1 pkgs
(2)     ? attempt gopkg.in/yaml.v2 with 1 pkgs; 1 versions to try
(2)         try gopkg.in/yaml.v2@v2
(2)     ✓ select gopkg.in/yaml.v2@v2 w/1 pkgs
(3)     ? attempt golang.org/x/sys with 1 pkgs; 1 versions to try
(3)         try golang.org/x/sys@master
(3)     ✓ select golang.org/x/sys@master w/1 pkgs
(4)     ? attempt stathat.com/c/consistent with 1 pkgs; 1 versions to try
(4)         try stathat.com/c/consistent@master
(5)     ✗   stathat.com/c/consistent at master has problem subpkg(s):
(5)             stathat.com/c/consistent has err (*pkgtree.LocalImportsError); required by (root).
(4)       ← no more versions of stathat.com/c/consistent to try; begin backtrack
(3)     ← backtrack: no more versions of golang.org/x/sys to try
(2)     ← backtrack: no more versions of gopkg.in/yaml.v2 to try
(1)     ← backtrack: no more versions of github.com/golang/protobuf to try
  ✗ solving failed

Solver wall times by segment:
     b-list-versions: 7.651384284s
         b-list-pkgs: 748.013299ms
              b-gmal: 480.572702ms
             satisfy:   6.358833ms
         select-root:   4.396338ms
            unselect:    571.824µs
         select-atom:    454.343µs
            new-atom:      359.7µs
           backtrack:     26.956µs
  b-deduce-proj-root:      10.74µs
               other:      9.173µs
     b-source-exists:       7.85µs

  TOTAL: 8.892166042s

No versions of stathat.com/c/consistent met constraints:
        master: Could not introduce stathat.com/c/consistent@master, as its subpackage stathat.com/c/consistent does not contain usable Go code (*pkgtree.LocalImportsError).. (Package is required by (root).)

What did you expect to see?

¯_(ツ)_/¯

What did you see instead?

No versions of stathat.com/c/consistent met constraints:
        master: Could not introduce stathat.com/c/consistent@master, as its subpackage stathat.com/c/consistent does not contain usable Go code (*pkgtree.LocalImportsError).. (Package is required by (root).)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions