No usable Go code
brycecr opened this issue · comments
What version of dep are you using (dep version)?
dep:
version : v0.5.4
build date : 2019-07-01
git hash : 1f7c19e
go version : go1.12.6
go compiler : gc
platform : linux/amd64
features : ImportDuringSolve=false
What dep command did you run?
dep ensure -v -add github.com/open-policy-agent/gatekeeper
What did you expect to see?
The package gatekeeper installed.
What did you see instead?
Solving failure: No versions of github.com/open-policy-agent/gatekeeper met constraints:
v3.0.3: Could not introduce github.com/open-policy-agent/gatekeeper@v3.0.3, as its subpackage github.com/open-policy-agent/gatekeeper does not contain usable Go code (*build.NoGoError).. (Package is required by (root).)
v3.0.2: Could not introduce github.com/open-policy-agent/gatekeeper@v3.0.2, as its subpackage github.com/open-policy-agent/gatekeeper does not contain usable Go code (*build.NoGoError).. (Package is required by (root).)
v3.0.1: Could not introduce github.com/open-policy-agent/gatekeeper@v3.0.1, as its subpackage github.com/open-policy-agent/gatekeeper does not contain usable Go code (*build.NoGoError).. (Package is required by (root).)
v3.0.0: Could not introduce github.com/open-policy-agent/gatekeeper@v3.0.0, as its subpackage github.com/open-policy-agent/gatekeeper does not contain usable Go code (*build.NoGoError).. (Package is required by (root).)
v2.0.1: Could not introduce github.com/open-policy-agent/gatekeeper@v2.0.1, as its subpackage github.com/open-policy-agent/gatekeeper does not contain usable Go code (*build.NoGoError).. (Package is required by (root).)
v3.0.4-beta.0: Could not introduce github.com/open-policy-agent/gatekeeper@v3.0.4-beta.0, as its subpackage github.com/open-policy-agent/gatekeeper does not contain usable Go code (*build.NoGoError).. (Package is required by (root).)
v3.0.4-alpha.1: Could not introduce github.com/open-policy-agent/gatekeeper@v3.0.4-alpha.1, as its subpackage github.com/open-policy-agent/gatekeeper does not contain usable Go code (*build.NoGoError).. (Package is required by (root).)
v3.0.4-alpha.0: Could not introduce github.com/open-policy-agent/gatekeeper@v3.0.4-alpha.0, as its subpackage github.com/open-policy-agent/gatekeeper does not contain usable Go code (*build.NoGoError).. (Package is required by (root).)
master: Could not introduce github.com/open-policy-agent/gatekeeper@master, as its subpackage github.com/open-policy-agent/gatekeeper does not contain usable Go code (*build.NoGoError).. (Package is required by (root).)
mutation: Could not introduce github.com/open-policy-agent/gatekeeper@mutation, as its subpackage github.com/open-policy-agent/gatekeeper does not contain usable Go code (*build.NoGoError).. (Package is required by (root).)
I have also tried adding the project name to my Gopkg.toml as part of required. Same error. Also tried adding a contraint. Same error was encountered. I also tried adding some fields about non-go
to prune
and project.prune
for this project, but no luck so far. I got the same error in each case.
Dep was officially deprecated earlier this year, and the proposal to archive this repository was accepted. As such, I'm closing outstanding issues before archiving the repository. For any further comments, please use the proposal thread on the Go issue tracker. Thanks!