Skip to content

Commit 307d369

Browse files
committed
go/internal/gcimporter: temporarily skip the contraints package on the
unified builder Temporary work-around to fix TryBots until the failure can be investigated. Updates golang/go#48595 Change-Id: Ifbc27fc4551195bd9c7427bab7a79076c6ba6392 Reviewed-on: https://go-review.googlesource.com/c/tools/+/352050 Trust: Robert Findley <rfindley@google.com> Run-TryBot: Robert Findley <rfindley@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org>
1 parent 9bea708 commit 307d369

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

internal/testenv/testenv.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,3 +297,9 @@ func SkipAfterGo1Point(t Testing, x int) {
297297
t.Skipf("running Go version %q is version 1.%d, newer than maximum 1.%d", runtime.Version(), Go1Point(), x)
298298
}
299299
}
300+
301+
// UsesGenerics reports if the standard library package stdlibPkg uses
302+
// generics.
303+
func UsesGenerics(stdlibPkg string) bool {
304+
return stdlibPkg == "constraints"
305+
}

0 commit comments

Comments
 (0)