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

x/tools/go/ssa: relies on explicitly-unstable testing.MainStart #41186

bcmills opened this issue Sep 2, 2020 · 1 comment

x/tools/go/ssa: relies on explicitly-unstable testing.MainStart #41186

bcmills opened this issue Sep 2, 2020 · 1 comment


Copy link

@bcmills bcmills commented Sep 2, 2020

Entering directory `/workdir/gopath/src/'
2020/09/02 14:32:24 internal error type-checking main$testmain: main$testmain.go:42:25: cannot use match (variable of type deps) as testing.testDeps value in argument to testing.MainStart: missing method SetPanicOnExit0
FAIL	4.716s

A short-term fix to add the missing method is trivial (in x/tools/go/ssa/testmain.go).

Longer term, x/tools/go/ssa should not be relying on the testing.testDeps interface or the testing.MainStart function. (testing.M and TestMain exist for a reason.)

@gopherbot gopherbot added the Tools label Sep 2, 2020
@gopherbot gopherbot added this to the Unreleased milestone Sep 2, 2020
@bcmills bcmills added NeedsFix and removed Tools labels Sep 2, 2020
@bcmills bcmills modified the milestones: Unreleased, Backlog Sep 2, 2020
Copy link

@gopherbot gopherbot commented Sep 2, 2020

Change mentions this issue: go/ssa: implement missing testing.testDeps SetPanicOnExit0 method

gopherbot pushed a commit to golang/tools that referenced this issue Sep 2, 2020
A new method was added to testing.testDeps in CL 250977, which causes
the implementation of that (unexported, explicitly-unstable) interface
in go/ssa to no longer satisfy the interface.

This is a quick, short-term fix. Longer term, the go/ssa package
should switch to the supported TestMain API.

Updates golang/go#41186

Change-Id: Ice110ef540e31a0a98085713346126ffeae64d5e
Run-TryBot: Bryan C. Mills <>
Reviewed-by: Michael Matloob <>
TryBot-Result: Gobot Gobot <>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants