This repository was archived by the owner on Sep 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1k
This repository was archived by the owner on Sep 9, 2020. It is now read-only.
ensure Solve(): No versions of honnef.co/go/tools met constraints #1263
Copy link
Copy link
Closed
Labels
Description
Go: go version go1.9.1 darwin/amd64
OS: Mac OS X 10.12.6
What I did: dep ensure -v
What I expected to see: honnef.co/go/tools
files should be downloaded to vendor
directory
What I saw instead: master: Could not introduce honnef.co/go/tools@master, as its subpackage honnef.co/go/tools does not contain usable Go code (*build.NoGoError).. (Package is required by (root).)
Full command line output:
dep ensure -v
Root project is "github.com/bitgaming/platform-build/golang/app"
54 transitively valid internal packages
4 external packages imported from 4 projects
(0) ✓ select (root)
(1) ? attempt github.com/axw/gocov with 1 pkgs; 3 versions to try
(1) try github.com/axw/gocov@master
(1) ✓ select github.com/axw/gocov@master w/4 pkgs
(2) ? attempt honnef.co/go/tools with 1 pkgs; 4 versions to try
(2) try honnef.co/go/[email protected]
(3) ✗ honnef.co/go/[email protected] not allowed by constraint master:
(3) master from (root)
(2) try honnef.co/go/tools@master
(3) ✗ honnef.co/go/tools at master has problem subpkg(s):
(3) honnef.co/go/tools has err (*build.NoGoError); required by (root).
(2) try honnef.co/go/tools@errcheck
(3) ✗ honnef.co/go/tools@errcheck not allowed by constraint master:
(3) master from (root)
(2) try honnef.co/go/[email protected]
(3) ✗ honnef.co/go/[email protected] not allowed by constraint master:
(3) master from (root)
(2) ← no more versions of honnef.co/go/tools to try; begin backtrack
(1) ← backtrack: no more versions of github.com/axw/gocov to try
✗ solving failed
Solver wall times by segment:
b-list-versions: 12.71768422s
b-source-exists: 2.462257602s
b-list-pkgs: 303.083454ms
b-deduce-proj-root: 188.054964ms
b-gmal: 155.915964ms
select-root: 4.48384ms
new-atom: 230.756µs
satisfy: 223.828µs
select-atom: 131.35µs
unselect: 67.643µs
b-matches: 11.905µs
b-pair-rev: 10.647µs
backtrack: 4.77µs
other: 4.515µs
b-pair-version: 1.576µs
TOTAL: 15.832167034s
ensure Solve(): No versions of honnef.co/go/tools met constraints:
2017.1: Could not introduce honnef.co/go/[email protected], as it is not allowed by constraint master from project github.com/bitgaming/platform-build/golang/app.
master: Could not introduce honnef.co/go/tools@master, as its subpackage honnef.co/go/tools does not contain usable Go code (*build.NoGoError).. (Package is required by (root).)
errcheck: Could not introduce honnef.co/go/tools@errcheck, as it is not allowed by constraint master from project github.com/bitgaming/platform-build/golang/app.
release.2017.1: Could not introduce honnef.co/go/[email protected], as it is not allowed by constraint master from project github.com/bitgaming/platform-build/golang/app.
Gopkg.tml
file:
required = ["honnef.co/go/tools", "github.com/axw/gocov/gocov", "github.com/bitgaming/migrate", "github.com/bitgaming/pq2gorm"]
[[constraint]]
name = "honnef.co/go/tools"
branch = "master"
[[constraint]]
name = "github.com/axw/gocov"
branch = "master"
[[constraint]]
name = "github.com/gemnasium/migrate"
branch = "master"
source = "github.com/bitgaming/migrate"
[[constraint]]
name = "github.com/wantedly/pq2gorm"
branch = "master"
source = "github.com/bitgaming/pq2gorm"
Note that the project where I ran dep ensure
does not have any go
source code, and is only used to get the above vendored files (which are then used in a base Docker image).