Public bug reported:
I'm still troubleshooting this, but I think I have enough information
already to open a bug.
The DEP8 tests are failing at "go install" (dh_build) time with these
errors:
cannot find package "golang.org/x/tools/internal/lsp/diff" in any of:
/usr/lib/go-1.14/src/golang.org/x/tools/internal/lsp/diff (from $GOROOT)
/tmp/autopkgtest.8OahHY/autopkgtest_tmp/obj-x86_64-linux-gnu/src/golang.org/x/tools/internal/lsp/diff
(from $GOPATH)
and
cannot find package "golang.org/x/tools/internal/lsp/debug/tag" in any of:
/usr/lib/go-1.14/src/golang.org/x/tools/internal/lsp/debug/tag (from
$GOROOT)
/tmp/autopkgtest.8OahHY/autopkgtest_tmp/obj-x86_64-linux-gnu/src/golang.org/x/tools/internal/lsp/debug/tag
(from $GOPATH)
This package has no dep8 test of its own, relying on "Testsuite:
autopkgtest-pkg-go" which basically runs the build again.
This upload contains a change in d/rules' DH_GOLANG_EXCLUDES:
* Add to DH_GOLANG_EXCLUDES "internal/lsp"
which is a part of the previously excluded "gopls"
# Exclude "cover" since it is included in core as of Go 1.5+.
# Exclude "gopls" as it requires honnef.co/go/tools which has not
# been packaged for Debian.
export DH_GOLANG_EXCLUDES := cmd/cover gopls internal/lsp
Turns out since commit
https://github.com/golang/tools/commit/b1df9901287c3c79c3946b1899de591bbd347c20
(that's as far as I have investigated at the moment), the
go/analysis/analysistest module started importing
"golang.org/x/tools/internal/lsp/diff", but now internal/lsp is being
excluded. I think that explains the build failure in the DEP8
environment.
I'm not sure why that doesn't fail the normal build, though.
I also don't know how this package migrated in debian, since it's
failing there too for quite some time:
https://ci.debian.net/packages/g/golang-golang-x-tools/
In the previous upload, golang-golang-x-tools-0.0~git20191118.07fc4c7+ds,
go/analysis/analysistest/analysistest.go didn't import internal/lsp/diff.
If I remove "internal/lsp" from DH_GOLANG_EXCLUDES and rebuild, then the
build-time tests fail:
--- FAIL: TestIssue37978 (60.01s)
--- FAIL: TestIssue37978/singleton (60.01s)
panic: Shutdown: context deadline exceeded [recovered]
panic: Shutdown: context deadline exceeded
** Affects: golang-golang-x-tools (Ubuntu)
Importance: Undecided
Status: New
** Tags: update-excuse
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1884314
Title:
DEP8 failure: excluded modules in d/rules still needed
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/golang-golang-x-tools/+bug/1884314/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs