From d20b6d8849ca3c7c1461b28418afb15ed7652712 Mon Sep 17 00:00:00 2001 From: "Bryan C. Mills" Date: Fri, 7 Dec 2018 12:08:12 -0500 Subject: [PATCH] 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 --- src/cmd/go/internal/modload/testgo.go | 2 ++ 1 file changed, 2 insertions(+) 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() { -- 2.50.0