Master doesn't build anymore: undefined: types.NewInterface2 #402
Comments
any workaround? |
+1 Seeing failed builds in prudhvitella/terraform-provider-infoblox#32 Verified it fails on my local machine also. |
the same when you run the command go get -u golang.org/x/lint/golint
# golang.org/x/tools/go/internal/gcimporter
../../golang.org/x/tools/go/internal/gcimporter/bimport.go:541:8: undefined: types.NewInterface2
../../golang.org/x/tools/go/internal/gcimporter/iimport.go:540:10: undefined: types.NewInterface2 So we are unable to install it. |
Actually, it's not the fault of golint that only uses golang/tools that have recently done a new commit : WORKAROUND : git checkout release-branch.go1.10 |
same problem. It seems that the source
|
all projects with go get -u github.com/golang/lint/golint in CI are now bust |
Any ETA on this? It blocks all our CI jobs. |
Looking into this. |
@griesemer is working on a fix as we speak. |
All: sorry about this. On it. |
…r builds before Go 1.11 For golang/lint#402. Change-Id: If8802c93679af57bcb50c43f386f37458813d910 Reviewed-on: https://go-review.googlesource.com/118563 Run-TryBot: Robert Griesemer <gri@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Well, I missed a few more places. |
For golang/lint#402. Change-Id: Ideaac18b4f0be1674bb07010840b3d10e6ebe9d6 Reviewed-on: https://go-review.googlesource.com/118639 Run-TryBot: Robert Griesemer <gri@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Andrew Bonventre <andybons@golang.org>
… for builds before Go 1.11 For golang/lint#402. Change-Id: I06d944aaa168fb595ff96eb27a7d6e7da344ebd6 Reviewed-on: https://go-review.googlesource.com/118564 Run-TryBot: Robert Griesemer <gri@golang.org> Reviewed-by: Andrew Bonventre <andybons@golang.org>
…efore go1.11 For golang/lint#402. Change-Id: I3f4eab123e52460980e76f5ffaca3a77a3af7374 Reviewed-on: https://go-review.googlesource.com/118565 Run-TryBot: Robert Griesemer <gri@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org>
There's one more CL pending for review but it's only affecting tests. Please let me know if go get -u golang.org/x/lint/golint still doesn't work for non 1.11 builds. |
…ds (fix build) TBR=adonovan The tests TestImportedTypes and TestIssue25301 are dependent on many 1.11-specific bug fixes that went into go/types. Just move them out of non-1.11 builds. While doing so, also extended the set of test cases run by TestImportedTypes (now matching the corresponding tests cases in the std lib). This also makes it again unnecessary to factor out the embeddedType function into build-specific versions. Removed again. For golang/lint#402. Change-Id: I45eb8c3d1dcca7b392f14a7660bc1599a44a0d41 Reviewed-on: https://go-review.googlesource.com/118567 Reviewed-by: Robert Griesemer <gri@golang.org>
We are using Travis CI and go 1.9.7, the build is now successful and |
Post-mortem: Late last night (with emphasis on "late") I created a larger CL in an attempt to finally update x/tools with all the latest fixes and changes that we've made to the various importers in the std lib. This also included fixes to go/types and new tests. The CL was approved and passed all (1.11) tests and I submitted it somewhat in a rush this morning while running out of the door, not thinking abut pre-1.11 builds. As we all saw, the non-1.11 builds failed quickly, and with it tools such as lint that depend on go/types. It was "obvious" what needed to be fixed (the go/types.NewInterface2 call is missing pre-1.11). While submitting that fix, I missed a couple of places (sigh), and also the fact that Interface.EmbeddedType was new as well. Finally, some of the new tests don't pass at all pre-1.11 due to larger fixes in go/types. I've split up the code into version-tagged files and I believe it works now. The primary reason for having these problems in the first place (and not fixing it all with a single CL) is that I relied on the builders to test non-1.11 versions for "expediency" (I hoped to get around installing a pre-1.11 setup on my new laptop while on the go.) Lesson (re-)learned. I still see a build failure for 1.9 but it is unrelated to the importers. Please confirm this is now working again and close if so. Thanks. |
Hello @griesemer, Good point of the adventure : Now all gophers know your name :D |
All decent gophers should've already known his name :-) |
Hi @tkanos, you're absolutely right, of course. |
hi @griesemer i still got this error with Go 1.10.8
|
same issue, getting
can someone please help? |
It looks like golint is using an old version of |
Making a CL... |
thanks, works for Go 1.10 now |
The text was updated successfully, but these errors were encountered: