From: Bryan C. Mills Date: Fri, 7 Dec 2018 17:08:12 +0000 (-0500) Subject: cmd/go/internal/modload: add missing build constraint in testgo.go X-Git-Tag: go1.12beta1~134 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=d20b6d8849ca3c7c1461b28418afb15ed7652712;p=gostls13.git cmd/go/internal/modload: add missing build constraint in testgo.go That file is supposed to make unexpected dependencies on the main module easier to diagnose in 'go test cmd/go', but I accidentally left off the build constraint, so it was triggering outside of the test. Updates #29097 Change-Id: I1cde3fe6c1d80add37c98a8c95ce48524ea05024 Reviewed-on: https://go-review.googlesource.com/c/153159 Run-TryBot: Bryan C. Mills Reviewed-by: Jay Conrod --- diff --git a/src/cmd/go/internal/modload/testgo.go b/src/cmd/go/internal/modload/testgo.go index 6cfba0c68f..663b24a68d 100644 --- a/src/cmd/go/internal/modload/testgo.go +++ b/src/cmd/go/internal/modload/testgo.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//+build testgo + package modload func init() {