Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

staticcheck "couldn't load packages due to errors" but go test/build run fine #169

Closed
jmank88 opened this issue Sep 7, 2017 · 8 comments
Assignees
Labels
bug upstream Issues that are caused by a dependency

Comments

@jmank88
Copy link

jmank88 commented Sep 7, 2017

I'm investigating this failing dep build https://travis-ci.org/golang/dep/jobs/272109382

staticcheck emits a flurry of errors, but go test and go build execute just fine. I was only able to reproduce locally after a go get -u. I'm not sure how out of date I was, but I suspect it was a recent change.
Here is the output of a local staticcheck ./internal/gps https://gist.github.com/jmank88/fc96b870ed2b95654e387fdb0c136503
Mostly cannot use X as Y: missing method Z

Is this a bug/regression?

@dmitshur
Copy link
Contributor

dmitshur commented Sep 7, 2017

Not able to reproduce locally with latest megacheck:

home $ go get -u honnef.co/go/tools/cmd/megacheck
home $ megacheck
home $ megacheck github.com/golang/dep
home $ megacheck github.com/golang/dep/...
../../golang/dep/cmd/dep/ensure.go:138:2: field overrides is unused (U1000)
../../golang/dep/cmd/dep/ensure.go:698:6: type stringSlice is unused (U1000)
../../golang/dep/internal/gps/bridge.go:60:2: field crp is unused (U1000)
../../golang/dep/internal/gps/selection.go:76:21: func (*selection).setDependenciesOn is unused (U1000)
../../golang/dep/internal/gps/selection.go:99:21: func (*selection).getSelectedPackagesIn is unused (U1000)
../../golang/dep/internal/gps/solve_failures.go:20:2: const warning is unused (U1000)
../../golang/dep/internal/gps/solve_failures.go:21:2: const mustResolve is unused (U1000)
../../golang/dep/internal/gps/solve_failures.go:22:2: const cannotResolve is unused (U1000)
../../golang/dep/internal/gps/source_manager.go:217:4: func Temporary is unused (U1000)
../../golang/dep/internal/gps/source_manager.go:719:2: const ctCheckoutVersion is unused (U1000)
../../golang/dep/internal/gps/vcs_repo.go:201:6: type svnRepo is unused (U1000)
../../golang/dep/internal/gps/vcs_repo_test.go:122:6: func testSvnRepo is unused (U1000)
../../golang/dep/internal/gps/vcs_source.go:563:6: type repo is unused (U1000)
../../golang/dep/internal/test/integration/testproj.go:34:2: field h is unused (U1000)
../../golang/dep/internal/test/test.go:207:18: func (*Helper).runFail is unused (U1000)
../../golang/dep/internal/test/test.go:282:18: func (*Helper).getStdout is unused (U1000)
../../golang/dep/internal/test/test.go:290:18: func (*Helper).getStderr is unused (U1000)
../../golang/dep/internal/test/test.go:300:18: func (*Helper).doGrepMatch is unused (U1000)
../../golang/dep/internal/test/test.go:317:18: func (*Helper).doGrep is unused (U1000)
../../golang/dep/internal/test/test.go:327:18: func (*Helper).grepStdout is unused (U1000)
../../golang/dep/internal/test/test.go:333:18: func (*Helper).grepStderr is unused (U1000)
../../golang/dep/internal/test/test.go:339:18: func (*Helper).grepBoth is unused (U1000)
../../golang/dep/internal/test/test.go:349:18: func (*Helper).doGrepNot is unused (U1000)
../../golang/dep/internal/test/test.go:359:18: func (*Helper).grepStdoutNot is unused (U1000)
../../golang/dep/internal/test/test.go:365:18: func (*Helper).grepStderrNot is unused (U1000)
../../golang/dep/internal/test/test.go:372:18: func (*Helper).grepBothNot is unused (U1000)
../../golang/dep/internal/test/test.go:380:18: func (*Helper).doGrepCount is unused (U1000)
../../golang/dep/internal/test/test.go:396:18: func (*Helper).grepCountBoth is unused (U1000)
../../golang/dep/internal/test/test.go:404:18: func (*Helper).creatingTemp is unused (U1000)

(I tried staticcheck too, it works fine too.)

What version of Go are you using?

@jmank88
Copy link
Author

jmank88 commented Sep 7, 2017

Sorry I didn't mention that the CI job was for a pull request: golang/dep#1127
go1.9 linux/amd64 both locally and on that travis job.
Notice that other jobs succeeded: https://travis-ci.org/golang/dep/builds/272109377

@dmitshur
Copy link
Contributor

dmitshur commented Sep 7, 2017

Ok, I can reproduce with that PR checked out:


dep $ git fetch origin pull/1127/head:try-pr
dep $ git checkout try-pr
dep $ go build ./...
dep $ megacheck ./internal/gps
src/github.com/golang/dep/internal/gps/constraints.go:75:10: cannot use NewBranch(m.Value) (value of type UnpairedVersion) as Constraint value in return statement: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraints.go:77:10: cannot use newDefaultBranch(m.Value) (value of type UnpairedVersion) as Constraint value in return statement: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/lock.go:145:10: cannot use lp.v (variable of type UnpairedVersion) as Version value in return statement: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/lock.go:152:9: cannot use lp.v.Pair(lp.r) (value of type PairedVersion) as Version value in return statement: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/lock.go:182:14: invalid operation: lp.v (variable of type UnpairedVersion) has no field or method Matches
src/github.com/golang/dep/internal/gps/source_cache_bolt_encode.go:243:3: invalid operation: lp.v (variable of type UnpairedVersion) has no field or method copyTo
src/github.com/golang/dep/internal/gps/version_unifier.go:26:7: invalid operation: p (variable of type PairedVersion) has no field or method Matches
src/github.com/golang/dep/internal/gps/version_unifier.go:51:7: invalid operation: pv (variable of type PairedVersion) has no field or method Matches
src/github.com/golang/dep/internal/gps/version_unifier.go:52:19: cannot use pv (variable of type PairedVersion) as Version value in argument to append: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_unifier.go:153:28: cannot use tv (variable of type UnpairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/source_cache_bolt.go:284:4: invalid operation: uv (variable of type UnpairedVersion) has no field or method copyTo
src/github.com/golang/dep/internal/gps/source_cache_bolt.go:389:3: invalid operation: uv (variable of type UnpairedVersion) has no field or method copyTo
src/github.com/golang/dep/internal/gps/source_manager.go:540:11: invalid operation: v (variable of type PairedVersion) has no field or method String
src/github.com/golang/dep/internal/gps/source_manager.go:548:10: cannot use version.Unpair() (value of type UnpairedVersion) as Constraint value in return statement: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/source_manager.go:559:10: cannot use version.Unpair() (value of type UnpairedVersion) as Constraint value in return statement: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/vcs_version.go:40:11: cannot use NewVersion(ver).Pair(Revision(rev)) (value of type PairedVersion) as Version value in return statement: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/vcs_version.go:53:10: cannot use NewBranch(ver).Pair(Revision(rev)) (value of type PairedVersion) as Version value in return statement: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version.go:511:9: invalid operation: v.v (variable of type UnpairedVersion) has no field or method String
src/github.com/golang/dep/internal/gps/version.go:515:9: invalid operation: v.v (variable of type UnpairedVersion) has no field or method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version.go:519:30: invalid operation: v.Unpair() (value of type UnpairedVersion) has no field or method typedString
src/github.com/golang/dep/internal/gps/version.go:546:6: invalid operation: tv (variable of type UnpairedVersion) has no field or method Matches
src/github.com/golang/dep/internal/gps/version.go:582:7: cannot compare tc.Intersect(tv) == v.v (mismatched types Constraint and UnpairedVersion)
src/github.com/golang/dep/internal/gps/version.go:614:9: invalid operation: v.v (variable of type UnpairedVersion) has no field or method identical
src/github.com/golang/dep/internal/gps/version.go:764:15: cannot use l (variable of type PairedVersion) as Version value in argument to vLess: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version.go:764:18: cannot use r (variable of type PairedVersion) as Version value in argument to vLess: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version.go:793:15: cannot use l (variable of type PairedVersion) as Version value in argument to vLess: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version.go:793:18: cannot use r (variable of type PairedVersion) as Version value in argument to vLess: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version.go:798:7: cannot use tl.v (variable of type UnpairedVersion) as Version value in assignment: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version.go:801:7: cannot use tr.v (variable of type UnpairedVersion) as Version value in assignment: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version.go:848:19: cannot use v (variable of type PairedVersion) as Version value in argument to append: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/solve_basic_test.go:906:9: cannot use NewVersion("2.1.3") (value of type UnpairedVersion) as Version value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/solve_basic_test.go:914:9: cannot use NewVersion("2.0.0") (value of type UnpairedVersion) as Version value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/solve_basic_test.go:936:9: cannot use NewVersion("3.5.0") (value of type UnpairedVersion) as Version value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/solve_basic_test.go:944:9: cannot use NewVersion("2.5.0") (value of type UnpairedVersion) as Version value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/solve_basic_test.go:966:9: cannot use NewVersion("1.0.0") (value of type UnpairedVersion) as Version value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/solve_basic_test.go:989:9: cannot use NewVersion("2.0.0") (value of type UnpairedVersion) as Version value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/solve_basic_test.go:997:9: cannot use NewVersion("1.0.0") (value of type UnpairedVersion) as Version value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/solve_basic_test.go:1000:13: cannot use NewVersion("1.0.0") (value of type UnpairedVersion) as Version value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/solve_basic_test.go:1016:9: cannot use NewVersion("1.0.0") (value of type UnpairedVersion) as Version value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/solve_basic_test.go:1138:9: cannot use NewVersion("1.0.0") (value of type UnpairedVersion) as Version value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/solve_basic_test.go:1192:17: cannot use NewVersion("1.0.0") (value of type UnpairedVersion) as Constraint value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/solve_basic_test.go:1210:17: cannot use NewVersion("2.0.0") (value of type UnpairedVersion) as Constraint value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/solve_bimodal_test.go:494:9: cannot use NewVersion("1.0.0") (value of type UnpairedVersion) as Version value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/solve_bimodal_test.go:537:9: cannot use NewVersion("1.0.0") (value of type UnpairedVersion) as Version value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/solve_bimodal_test.go:540:13: cannot use NewVersion("1.0.0") (value of type UnpairedVersion) as Version value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/solve_bimodal_test.go:679:17: cannot use NewVersion("1.0.0") (value of type UnpairedVersion) as Constraint value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/solve_bimodal_test.go:813:9: cannot use NewVersion("2.0.0") (value of type UnpairedVersion) as Version value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/solve_bimodal_test.go:840:9: cannot use NewVersion("1.0.0") (value of type UnpairedVersion) as Version value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/solve_bimodal_test.go:965:9: cannot use NewVersion("2.0.0") (value of type UnpairedVersion) as Version value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/solve_bimodal_test.go:969:19: cannot use NewVersion("1.0.0") (value of type UnpairedVersion) as Constraint value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/solve_bimodal_test.go:973:9: cannot use NewVersion("1.0.0") (value of type UnpairedVersion) as Version value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/solve_bimodal_test.go:1006:9: cannot use NewVersion("2.0.0") (value of type UnpairedVersion) as Version value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/solve_bimodal_test.go:1010:19: cannot use NewVersion("1.0.0") (value of type UnpairedVersion) as Constraint value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/solve_bimodal_test.go:1014:9: cannot use NewVersion("1.0.0") (value of type UnpairedVersion) as Version value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/solve_bimodal_test.go:1047:9: cannot use NewVersion("2.0.0") (value of type UnpairedVersion) as Version value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/solve_bimodal_test.go:1051:19: cannot use NewVersion("1.0.0") (value of type UnpairedVersion) as Constraint value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/solve_bimodal_test.go:1055:9: cannot use NewVersion("1.0.0") (value of type UnpairedVersion) as Version value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_queue_test.go:19:2: cannot use NewVersion("v2.0.0").Pair("200rev") (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_queue_test.go:20:2: cannot use NewVersion("v1.1.1").Pair("111rev") (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_queue_test.go:21:2: cannot use NewVersion("v1.1.0").Pair("110rev") (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_queue_test.go:22:2: cannot use NewVersion("v1.0.0").Pair("100rev") (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_queue_test.go:23:2: cannot use NewBranch("master").Pair("masterrev") (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraint_test.go:709:26: cannot use v1 (variable of type UnpairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraint_test.go:709:30: cannot use v4 (variable of type UnpairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraint_test.go:710:26: cannot use v2 (variable of type UnpairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraint_test.go:710:30: cannot use v3 (variable of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraint_test.go:727:18: cannot use v4 (variable of type UnpairedVersion) as Version value in argument to uv1.Matches: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraint_test.go:730:6: invalid operation: v4 (variable of type UnpairedVersion) has no field or method Matches
src/github.com/golang/dep/internal/gps/constraint_test.go:734:18: cannot use v3 (variable of type PairedVersion) as Version value in argument to uv1.Matches: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraint_test.go:737:6: invalid operation: v3 (variable of type PairedVersion) has no field or method Matches
src/github.com/golang/dep/internal/gps/constraint_test.go:741:17: cannot use v2 (variable of type UnpairedVersion) as Version value in argument to uv1.Matches: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraint_test.go:744:5: invalid operation: v2 (variable of type UnpairedVersion) has no field or method Matches
src/github.com/golang/dep/internal/gps/constraint_test.go:748:17: cannot use v5 (variable of type PairedVersion) as Version value in argument to uv1.Matches: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraint_test.go:751:5: invalid operation: v5 (variable of type PairedVersion) has no field or method Matches
src/github.com/golang/dep/internal/gps/constraint_test.go:760:21: cannot use v4 (variable of type UnpairedVersion) as Constraint value in argument to uv1.MatchesAny: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraint_test.go:763:6: invalid operation: v4 (variable of type UnpairedVersion) has no field or method MatchesAny
src/github.com/golang/dep/internal/gps/constraint_test.go:767:21: cannot use v3 (variable of type PairedVersion) as Constraint value in argument to uv1.MatchesAny: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraint_test.go:770:6: invalid operation: v3 (variable of type PairedVersion) has no field or method MatchesAny
src/github.com/golang/dep/internal/gps/constraint_test.go:774:20: cannot use v2 (variable of type UnpairedVersion) as Constraint value in argument to uv1.MatchesAny: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraint_test.go:777:5: invalid operation: v2 (variable of type UnpairedVersion) has no field or method MatchesAny
src/github.com/golang/dep/internal/gps/constraint_test.go:781:20: cannot use v5 (variable of type PairedVersion) as Constraint value in argument to uv1.MatchesAny: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraint_test.go:784:5: invalid operation: v5 (variable of type PairedVersion) has no field or method MatchesAny
src/github.com/golang/dep/internal/gps/constraint_test.go:809:19: cannot use v4 (variable of type UnpairedVersion) as Constraint value in argument to uv1.Intersect: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraint_test.go:809:5: cannot compare uv1.Intersect(v4) != v4 (mismatched types Constraint and UnpairedVersion)
src/github.com/golang/dep/internal/gps/constraint_test.go:812:5: invalid operation: v4 (variable of type UnpairedVersion) has no field or method Intersect
src/github.com/golang/dep/internal/gps/constraint_test.go:816:19: cannot use v3 (variable of type PairedVersion) as Constraint value in argument to uv1.Intersect: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraint_test.go:817:107: cannot use v3 (variable of type PairedVersion) as Constraint value in argument to uv1.Intersect: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraint_test.go:819:5: invalid operation: v3 (variable of type PairedVersion) has no field or method Intersect
src/github.com/golang/dep/internal/gps/constraint_test.go:820:101: invalid operation: v3 (variable of type PairedVersion) has no field or method Intersect
src/github.com/golang/dep/internal/gps/constraint_test.go:823:19: cannot use v2 (variable of type UnpairedVersion) as Constraint value in argument to uv1.Intersect: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraint_test.go:826:5: invalid operation: v2 (variable of type UnpairedVersion) has no field or method Intersect
src/github.com/golang/dep/internal/gps/constraint_test.go:830:19: cannot use v5 (variable of type PairedVersion) as Constraint value in argument to uv1.Intersect: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraint_test.go:833:5: invalid operation: v5 (variable of type PairedVersion) has no field or method Intersect
src/github.com/golang/dep/internal/gps/constraint_test.go:837:5: cannot compare uv1.Intersect(c1) != v4 (mismatched types Constraint and UnpairedVersion)
src/github.com/golang/dep/internal/gps/constraint_test.go:840:5: cannot compare c1.Intersect(uv1) != v4 (mismatched types Constraint and UnpairedVersion)
src/github.com/golang/dep/internal/gps/constraint_test.go:902:9: cannot use v1 (variable of type UnpairedVersion) as Constraint value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraint_test.go:906:9: cannot use v2 (variable of type PairedVersion) as Constraint value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraint_test.go:910:9: cannot use v3 (variable of type UnpairedVersion) as Constraint value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraint_test.go:914:9: cannot use v4 (variable of type UnpairedVersion) as Constraint value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraint_test.go:918:9: cannot use v5 (variable of type UnpairedVersion) as Constraint value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraint_test.go:938:4: cannot use NewVersion("test") (value of type UnpairedVersion) as Constraint value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraint_test.go:938:24: cannot use NewVersion("test") (value of type UnpairedVersion) as Constraint value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraint_test.go:939:4: cannot use NewVersion("test") (value of type UnpairedVersion) as Constraint value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraint_test.go:939:24: cannot use NewVersion("test2") (value of type UnpairedVersion) as Constraint value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraint_test.go:940:4: cannot use NewBranch("test") (value of type UnpairedVersion) as Constraint value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraint_test.go:940:23: cannot use NewBranch("test") (value of type UnpairedVersion) as Constraint value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraint_test.go:941:4: cannot use NewBranch("test") (value of type UnpairedVersion) as Constraint value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraint_test.go:941:23: cannot use newDefaultBranch("test") (value of type UnpairedVersion) as Constraint value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraint_test.go:942:4: cannot use newDefaultBranch("test") (value of type UnpairedVersion) as Constraint value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraint_test.go:942:30: cannot use newDefaultBranch("test") (value of type UnpairedVersion) as Constraint value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraint_test.go:946:21: cannot use NewVersion("test") (value of type UnpairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraint_test.go:946:41: cannot use NewBranch("branch") (value of type UnpairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraint_test.go:947:21: cannot use NewBranch("branch") (value of type UnpairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraint_test.go:947:42: cannot use NewVersion("test") (value of type UnpairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraint_test.go:972:21: cannot use newDefaultBranch("test") (value of type UnpairedVersion) as Constraint value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraint_test.go:973:14: cannot use NewBranch("test") (value of type UnpairedVersion) as Constraint value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraint_test.go:974:11: cannot use NewVersion("test") (value of type UnpairedVersion) as Constraint value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/constraint_test.go:1000:16: invalid operation: got (variable of type UnpairedVersion) has no field or method identical
src/github.com/golang/dep/internal/gps/hash_test.go:341:18: cannot use NewBranch("foobranch") (value of type UnpairedVersion) as Constraint value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/hash_test.go:402:18: cannot use NewBranch("plexiglass") (value of type UnpairedVersion) as Constraint value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/hash_test.go:431:18: cannot use NewVersion("fluglehorn") (value of type UnpairedVersion) as Constraint value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/hash_test.go:495:18: cannot use NewVersion("fluglehorn") (value of type UnpairedVersion) as Constraint value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/lock_test.go:16:52: cannot use NewVersion("v0.10.0") (value of type UnpairedVersion) as Version value in argument to NewLockedProject: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/lock_test.go:17:33: cannot use NewVersion("nada") (value of type UnpairedVersion) as Version value in argument to NewLockedProject: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/lock_test.go:18:33: cannot use NewVersion("zip") (value of type UnpairedVersion) as Version value in argument to NewLockedProject: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/lock_test.go:19:33: cannot use NewVersion("zilch") (value of type UnpairedVersion) as Version value in argument to NewLockedProject: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/lock_test.go:37:52: cannot use NewVersion("v0.10.0") (value of type UnpairedVersion) as Version value in argument to NewLockedProject: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/lock_test.go:38:52: cannot use NewVersion("v0.10.0") (value of type UnpairedVersion) as Version value in argument to NewLockedProject: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/lock_test.go:39:52: cannot use NewVersion("v0.10.0") (value of type UnpairedVersion) as Version value in argument to NewLockedProject: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/lock_test.go:40:33: cannot use NewVersion("nada") (value of type UnpairedVersion) as Version value in argument to NewLockedProject: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/lock_test.go:41:52: cannot use NewVersion("v0.10.0") (value of type UnpairedVersion) as Version value in argument to NewLockedProject: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/lock_test.go:42:52: cannot use NewVersion("v0.10.0").Pair("278a227dfc3d595a33a77ff3f841fd8ca1bc8cd0") (value of type PairedVersion) as Version value in argument to NewLockedProject: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/lock_test.go:43:52: cannot use NewVersion("v0.11.0") (value of type UnpairedVersion) as Version value in argument to NewLockedProject: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/lock_test.go:87:58: cannot use NewVersion("v0.10.0").Pair("278a227dfc3d595a33a77ff3f841fd8ca1bc8cd0") (value of type PairedVersion) as Version value in argument to NewLockedProject: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/lock_test.go:88:66: cannot use NewVersion("v2.0.0") (value of type UnpairedVersion) as Version value in argument to NewLockedProject: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/lock_test.go:89:68: cannot use NewBranch("master").Pair("63fc17eb7966a6f4cc0b742bf42731c52c4ac740") (value of type PairedVersion) as Version value in argument to NewLockedProject: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/lock_test.go:129:61: cannot use NewVersion("v0.11.0") (value of type UnpairedVersion) as Version value in argument to NewLockedProject: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/lock_test.go:143:59: cannot use NewVersion("v0.10.0") (value of type UnpairedVersion) as Version value in argument to NewLockedProject: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/lock_test.go:148:59: cannot use NewVersion("v0.10.0") (value of type UnpairedVersion) as Version value in argument to NewLockedProject: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/lock_test.go:153:59: cannot use NewVersion("v0.10.0") (value of type UnpairedVersion) as Version value in argument to NewLockedProject: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/lock_test.go:160:5: cannot use NewVersion("v0.10.0") (value of type UnpairedVersion) as Version value in argument to NewLockedProject: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/lock_test.go:165:59: cannot use NewVersion("v0.10.0").Pair("278a227dfc3d595a33a77ff3f841fd8ca1bc8cd0") (value of type PairedVersion) as Version value in argument to NewLockedProject: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/lockdiff_test.go:49:69: cannot use NewVersion("v0.10.0") (value of type UnpairedVersion) as Version value in argument to NewLockedProject: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/lockdiff_test.go:50:69: cannot use NewVersion("v0.10.0") (value of type UnpairedVersion) as Version value in argument to NewLockedProject: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/manager_test.go:185:8: invalid operation: pvl[k] (variable of type PairedVersion) has no field or method Matches
src/github.com/golang/dep/internal/gps/manager_test.go:209:4: cannot use NewVersion("v2.0.0").Pair(Revision("4a54adf81c75375d26d376459c00d5ff9b703e5e")) (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/manager_test.go:210:4: cannot use NewVersion("v1.1.0").Pair(Revision("b2cb48dda625f6640b34d9ffb664533359ac8b91")) (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/manager_test.go:211:4: cannot use NewVersion("v1.0.0").Pair(Revision("bf85021c0405edbc4f3648b0603818d641674f72")) (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/manager_test.go:212:4: cannot use newDefaultBranch("master").Pair(Revision("bf85021c0405edbc4f3648b0603818d641674f72")) (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/manager_test.go:213:4: cannot use NewBranch("v1").Pair(Revision("e3777f683305eafca223aefe56b4e8ecf103f467")) (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/manager_test.go:214:4: cannot use NewBranch("v1.1").Pair(Revision("f1fbc520489a98306eb28c235204e39fa8a89c84")) (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/manager_test.go:215:4: cannot use NewBranch("v3").Pair(Revision("4a54adf81c75375d26d376459c00d5ff9b703e5e")) (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/manager_test.go:304:8: invalid operation: v[k] (variable of type PairedVersion) has no field or method Matches
src/github.com/golang/dep/internal/gps/manager_test.go:431:41: cannot use NewVersion("v1.0.0") (value of type UnpairedVersion) as Version value in argument to sm.GetManifestAndLock: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/result_test.go:34:9: cannot use NewBranch("master").Pair(Revision("4d59fb584b15a94d7401e356d2875c472d76ef45")) (value of type PairedVersion) as Version value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/result_test.go:38:9: cannot use NewVersion("1.0.0").Pair(Revision("30605f6ac35fcb075ad0bfa9296f90a7d891523e")) (value of type PairedVersion) as Version value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/result_test.go:74:9: cannot use NewBranch("master").Pair(Revision("4d59fb584b15a94d7401e356d2875c472d76ef45")) (value of type PairedVersion) as Version value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/result_test.go:78:9: cannot use NewVersion("1.0.0").Pair(Revision("[email protected]")) (value of type PairedVersion) as Version value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/result_test.go:82:9: cannot use NewVersion("v1.0.0").Pair(Revision("aa110802a0c64195d0a6c375c9f66668827c90b4")) (value of type PairedVersion) as Version value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/rootdata_test.go:144:18: cannot use NewBranch("foo") (value of type UnpairedVersion) as Constraint value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/rootdata_test.go:158:18: cannot use NewBranch("foo") (value of type UnpairedVersion) as Constraint value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/rootdata_test.go:166:18: cannot use NewBranch("bar") (value of type UnpairedVersion) as Constraint value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/rootdata_test.go:180:18: cannot use NewBranch("foo") (value of type UnpairedVersion) as Constraint value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/rootdata_test.go:184:23: cannot use NewBranch("bar") (value of type UnpairedVersion) as Constraint value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/rootdata_test.go:208:18: cannot use NewBranch("foo") (value of type UnpairedVersion) as Constraint value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/solve_basic_test.go:103:7: cannot use NewVersion(ver[1:]) (value of type UnpairedVersion) as Version value in assignment: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/solve_basic_test.go:105:7: cannot use NewBranch(ver[1:]) (value of type UnpairedVersion) as Version value in assignment: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/solve_basic_test.go:112:7: cannot use NewVersion(ver) (value of type UnpairedVersion) as Version value in assignment: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/solve_basic_test.go:116:7: cannot use v.(UnpairedVersion).Pair(rev) (value of type PairedVersion) as Version value in assignment: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/solve_basic_test.go:144:7: cannot use NewVersion(ver[1:]) (value of type UnpairedVersion) as Constraint value in assignment: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/solve_basic_test.go:146:7: cannot use NewBranch(ver[1:]) (value of type UnpairedVersion) as Constraint value in assignment: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/solve_basic_test.go:167:7: cannot use c.(UnpairedVersion).Pair(rev) (value of type PairedVersion) as Constraint value in assignment: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/solve_basic_test.go:1343:7: cannot use pv.Unpair() (value of type UnpairedVersion) as Version value in assignment: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/solve_basic_test.go:1370:11: cannot use pv.Unpair() (value of type UnpairedVersion) as Version value in assignment: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/solve_basic_test.go:1393:7: invalid operation: uv (variable of type UnpairedVersion) has no field or method Matches
src/github.com/golang/dep/internal/gps/solve_basic_test.go:1525:20: cannot use v.Unpair() (value of type UnpairedVersion) as Version value in argument to append: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/solve_basic_test.go:1527:20: cannot use v (variable of type PairedVersion) as Version value in argument to append: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/source_cache_bolt_encode_test.go:22:34: cannot use newDefaultBranch("test") (value of type UnpairedVersion) as Constraint value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/source_cache_bolt_encode_test.go:24:40: cannot use NewBranch("test") (value of type UnpairedVersion) as Constraint value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/source_cache_bolt_test.go:57:53: cannot use NewVersion("v0.10.0") (value of type UnpairedVersion) as Version value in argument to NewLockedProject: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/source_cache_bolt_test.go:58:54: cannot use NewVersion("v0.10.0") (value of type UnpairedVersion) as Version value in argument to NewLockedProject: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/source_cache_bolt_test.go:59:54: cannot use NewVersion("v0.10.0") (value of type UnpairedVersion) as Version value in argument to NewLockedProject: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/source_cache_bolt_test.go:60:34: cannot use NewVersion("nada") (value of type UnpairedVersion) as Version value in argument to NewLockedProject: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/source_cache_bolt_test.go:61:54: cannot use NewVersion("v0.10.0") (value of type UnpairedVersion) as Version value in argument to NewLockedProject: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/source_cache_bolt_test.go:128:9: invalid operation: pvs[i] (variable of type PairedVersion) has no field or method identical
src/github.com/golang/dep/internal/gps/source_cache_bolt_test.go:207:9: invalid operation: pvs[i] (variable of type PairedVersion) has no field or method identical
src/github.com/golang/dep/internal/gps/source_cache_bolt_test.go:219:17: cannot use NewBranch("master") (value of type UnpairedVersion) as Constraint value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/source_cache_bolt_test.go:231:53: cannot use NewVersion("v1") (value of type UnpairedVersion) as Version value in argument to NewLockedProject: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/source_cache_bolt_test.go:295:9: invalid operation: newPVS[i] (variable of type PairedVersion) has no field or method identical
src/github.com/golang/dep/internal/gps/source_cache_test.go:94:54: cannot use NewVersion("v0.10.0") (value of type UnpairedVersion) as Version value in argument to NewLockedProject: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/source_cache_test.go:95:55: cannot use NewVersion("v0.10.0") (value of type UnpairedVersion) as Version value in argument to NewLockedProject: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/source_cache_test.go:96:55: cannot use NewVersion("v0.10.0") (value of type UnpairedVersion) as Version value in argument to NewLockedProject: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/source_cache_test.go:97:35: cannot use NewVersion("nada") (value of type UnpairedVersion) as Version value in argument to NewLockedProject: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/source_cache_test.go:98:55: cannot use NewVersion("v0.10.0") (value of type UnpairedVersion) as Version value in argument to NewLockedProject: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/source_cache_test.go:143:54: cannot use NewVersion("v0.10.0").Pair("278a227dfc3d595a33a77ff3f841fd8ca1bc8cd0") (value of type PairedVersion) as Version value in argument to NewLockedProject: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/source_cache_test.go:144:55: cannot use NewVersion("v0.11.0") (value of type UnpairedVersion) as Version value in argument to NewLockedProject: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/source_cache_test.go:293:10: invalid operation: versions[i] (variable of type PairedVersion) has no field or method identical
src/github.com/golang/dep/internal/gps/source_cache_test.go:320:10: invalid operation: uv (variable of type UnpairedVersion) has no field or method String
src/github.com/golang/dep/internal/gps/source_cache_test.go:320:25: invalid operation: want (variable of type UnpairedVersion) has no field or method String
src/github.com/golang/dep/internal/gps/source_cache_test.go:321:51: invalid operation: want (variable of type UnpairedVersion) has no field or method String
src/github.com/golang/dep/internal/gps/source_cache_test.go:321:66: invalid operation: uv (variable of type UnpairedVersion) has no field or method String
src/github.com/golang/dep/internal/gps/source_cache_test.go:331:11: invalid operation: uv (variable of type UnpairedVersion) has no field or method String
src/github.com/golang/dep/internal/gps/source_cache_test.go:345:11: invalid operation: uv (variable of type UnpairedVersion) has no field or method String
src/github.com/golang/dep/internal/gps/source_cache_test.go:346:30: cannot use uv (variable of type UnpairedVersion) as Version value in argument to c.toRevision: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/source_cache_test.go:359:11: invalid operation: want (variable of type UnpairedVersion) has no field or method String
src/github.com/golang/dep/internal/gps/source_cache_test.go:363:17: invalid operation: uv (variable of type UnpairedVersion) has no field or method identical
src/github.com/golang/dep/internal/gps/source_manager_test.go:52:33: cannot use NewBranch("v2") (value of type UnpairedVersion) as Constraint value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/source_manager_test.go:53:41: cannot use NewBranch("master") (value of type UnpairedVersion) as Constraint value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/source_manager_test.go:66:42: cannot use NewBranch("default") (value of type UnpairedVersion) as Constraint value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/source_test.go:122:86: cannot use badver (variable of type UnpairedVersion) as Version value in argument to sg.getManifestAndLock: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/source_test.go:129:77: cannot use badver (variable of type UnpairedVersion) as Version value in argument to sg.listPackages: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/source_test.go:136:34: cannot use badver (variable of type UnpairedVersion) as Version value in argument to sg.exportVersionTo: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/source_test.go:164:81: cannot use NewVersion("v1.0.0") (value of type UnpairedVersion) as Version value in argument to sg.listPackages: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/vcs_source_test.go:112:4: cannot use NewVersion("v2.0.0").Pair(Revision("4a54adf81c75375d26d376459c00d5ff9b703e5e")) (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/vcs_source_test.go:113:4: cannot use NewVersion("v1.1.0").Pair(Revision("b2cb48dda625f6640b34d9ffb664533359ac8b91")) (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/vcs_source_test.go:114:4: cannot use NewVersion("v1.0.0").Pair(Revision("bf85021c0405edbc4f3648b0603818d641674f72")) (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/vcs_source_test.go:115:4: cannot use newDefaultBranch("master").Pair(Revision("bf85021c0405edbc4f3648b0603818d641674f72")) (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/vcs_source_test.go:116:4: cannot use NewBranch("v1").Pair(Revision("e3777f683305eafca223aefe56b4e8ecf103f467")) (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/vcs_source_test.go:117:4: cannot use NewBranch("v1.1").Pair(Revision("f1fbc520489a98306eb28c235204e39fa8a89c84")) (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/vcs_source_test.go:118:4: cannot use NewBranch("v3").Pair(Revision("4a54adf81c75375d26d376459c00d5ff9b703e5e")) (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/vcs_source_test.go:253:4: cannot use NewVersion("v1.1.0").Pair(Revision("b2cb48dda625f6640b34d9ffb664533359ac8b91")) (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/vcs_source_test.go:254:4: cannot use NewVersion("v1.0.0").Pair(Revision("bf85021c0405edbc4f3648b0603818d641674f72")) (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/vcs_source_test.go:255:4: cannot use newDefaultBranch("v1.1").Pair(Revision("f1fbc520489a98306eb28c235204e39fa8a89c84")) (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/vcs_source_test.go:256:4: cannot use NewBranch("v1").Pair(Revision("e3777f683305eafca223aefe56b4e8ecf103f467")) (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/vcs_source_test.go:263:4: cannot use NewVersion("v2.0.0").Pair(Revision("4a54adf81c75375d26d376459c00d5ff9b703e5e")) (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/vcs_source_test.go:270:4: cannot use newDefaultBranch("v3").Pair(Revision("4a54adf81c75375d26d376459c00d5ff9b703e5e")) (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/vcs_source_test.go:277:4: cannot use newDefaultBranch("v1-unstable").Pair(Revision("24de0be8f4a0b8a44321562117749b257bfcef69")) (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/vcs_source_test.go:343:3: cannot use NewVersion("1.0.0").Pair(Revision("[email protected]")) (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/vcs_source_test.go:344:3: cannot use newDefaultBranch("(default)").Pair(Revision("[email protected]")) (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/vcs_source_test.go:508:4: cannot use NewVersion("v1.0.0").Pair(Revision("aa110802a0c64195d0a6c375c9f66668827c90b4")) (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/vcs_source_test.go:509:4: cannot use newDefaultBranch("@").Pair(Revision("b10d05d581e5401f383e48ccfeb84b48fde99d06")) (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/vcs_source_test.go:510:4: cannot use NewBranch("another").Pair(Revision("b10d05d581e5401f383e48ccfeb84b48fde99d06")) (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/vcs_source_test.go:511:4: cannot use NewBranch("default").Pair(Revision("3d466f437f6616da594bbab6446cc1cb4328d1bb")) (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/vcs_source_test.go:512:4: cannot use NewBranch("newbranch").Pair(Revision("5e2a01be9aee942098e44590ae545c7143da9675")) (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/vcs_source_test.go:518:3: cannot use NewVersion("v1.0.0").Pair(Revision("aa110802a0c64195d0a6c375c9f66668827c90b4")) (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/vcs_source_test.go:519:3: cannot use newDefaultBranch("default").Pair(Revision("3d466f437f6616da594bbab6446cc1cb4328d1bb")) (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/vcs_source_test.go:520:3: cannot use NewBranch("another").Pair(Revision("b10d05d581e5401f383e48ccfeb84b48fde99d06")) (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/vcs_source_test.go:521:3: cannot use NewBranch("newbranch").Pair(Revision("5e2a01be9aee942098e44590ae545c7143da9675")) (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/vcs_version_test.go:32:14: cannot use NewVersion("v0.8.0").Pair("645ef00459ed84a119197bfb8d8205042c6df63d") (value of type PairedVersion) as Version value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/vcs_version_test.go:40:9: cannot use NewBranch("another-branch").Pair("8e6902fdd0361e8fa30226b350e62973e3625ed5") (value of type PairedVersion) as Version value in struct literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_test.go:23:3: cannot use v1 (variable of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_test.go:24:3: cannot use v2 (variable of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_test.go:25:3: cannot use v3 (variable of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_test.go:26:3: cannot use v4 (variable of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_test.go:27:3: cannot use v5 (variable of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_test.go:28:3: cannot use v6 (variable of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_test.go:29:3: cannot use v7 (variable of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_test.go:30:3: cannot use v8 (variable of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_test.go:31:3: cannot use v9 (variable of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_test.go:32:3: cannot use v10 (variable of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_test.go:42:3: cannot use v3 (variable of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_test.go:42:7: cannot use v4 (variable of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_test.go:42:11: cannot use v5 (variable of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_test.go:43:3: cannot use v9 (variable of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_test.go:43:7: cannot use v10 (variable of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_test.go:44:3: cannot use v7 (variable of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_test.go:44:7: cannot use v1 (variable of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_test.go:44:11: cannot use v2 (variable of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_test.go:45:3: cannot use v6 (variable of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_test.go:45:7: cannot use v8 (variable of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_test.go:50:3: cannot use v5 (variable of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_test.go:50:7: cannot use v4 (variable of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_test.go:50:11: cannot use v3 (variable of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_test.go:51:3: cannot use v10 (variable of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_test.go:51:8: cannot use v9 (variable of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_test.go:52:3: cannot use v7 (variable of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_test.go:52:7: cannot use v1 (variable of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_test.go:52:11: cannot use v2 (variable of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_test.go:53:3: cannot use v6 (variable of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_test.go:53:7: cannot use v8 (variable of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_unifier_test.go:23:3: cannot use NewBranch("master").Pair(rev1) (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_unifier_test.go:24:3: cannot use NewBranch("test").Pair(rev2) (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_unifier_test.go:25:3: cannot use NewVersion("1.0.0").Pair(rev1) (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_unifier_test.go:26:3: cannot use NewVersion("1.0.1").Pair("other1") (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_unifier_test.go:27:3: cannot use NewVersion("v2.0.5").Pair(rev3) (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_unifier_test.go:28:3: cannot use NewVersion("2.0.5.2").Pair(rev3) (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_unifier_test.go:29:3: cannot use newDefaultBranch("unwrapped").Pair(rev3) (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_unifier_test.go:30:3: cannot use NewVersion("20.0.5.2").Pair(rev1) (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_unifier_test.go:31:3: cannot use NewVersion("v1.5.5-beta.4").Pair("other2") (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_unifier_test.go:32:3: cannot use NewVersion("v3.0.1-alpha.1").Pair(rev2) (value of type PairedVersion) as Version value in array or slice literal: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_unifier_test.go:55:31: cannot use NewBranch("master") (value of type UnpairedVersion) as Version value in argument to vu.createTypeUnion: missing method ImpliedCaretString
src/github.com/golang/dep/internal/gps/version_unifier_test.go:99:5: cannot compare gotc != NewVersion("v2.0.5").Pair(rev3) (mismatched types Constraint and PairedVersion)
couldn't load packages due to errors: github.com/golang/dep/internal/gps

Seems like a legitimate problem in staticcheck (or its dependencies). /cc @dominikh

@dominikh dominikh self-assigned this Sep 8, 2017
@dominikh
Copy link
Owner

dominikh commented Sep 8, 2017

Current braindump: the bug isn't in staticcheck per se: errcheck has the same issue. The issue is somehow related to the copyTo(*ConstraintMsg) method in the Constraint interface. Removing the method, or changing its argument to type *int resolve the issue.

Edit: renaming bridge.go to any name that sorts alphabetically after constraint.go also fixes the issue. Fun times.

Edit 2: got it down to 40 lines. Time to debug this.

@dominikh
Copy link
Owner

dominikh commented Sep 8, 2017

This is now golang/go#21804

@dominikh dominikh added bug upstream Issues that are caused by a dependency labels Sep 8, 2017
@dominikh
Copy link
Owner

This will be fixed in Go 1.11: golang/go@dd44895

@fortytw2
Copy link
Contributor

fortytw2 commented Oct 1, 2018

Looks like this is fixed in next, but still impacts master under Go 1.11

@dominikh
Copy link
Owner

dominikh commented Jan 4, 2019

This should be fixed now.

@dominikh dominikh closed this as completed Jan 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug upstream Issues that are caused by a dependency
Projects
None yet
Development

No branches or pull requests

4 participants