From cee99c0f96fe2002e8a7c606904ece3a1d61ebd6 Mon Sep 17 00:00:00 2001 From: Dmitri Shuralyov Date: Fri, 8 Nov 2024 13:13:23 -0500 Subject: [PATCH] example/ivy: use tools build constraint in tools.go In modern versions of the go command, the go mod tidy command doesn't consider module requirements coming from files with an "ignore" build constraint. Use "tools" instead. This way, running go mod tidy on this module becomes a no-op, instead of deleting all of the requirements from go.mod and go.sum. Change-Id: I42a24c462acf7340410614fa3b0dd80608efcdaa Reviewed-on: https://go-review.googlesource.com/c/mobile/+/626655 Reviewed-by: David Chase Reviewed-by: Dmitri Shuralyov Auto-Submit: Dmitri Shuralyov LUCI-TryBot-Result: Go LUCI --- example/ivy/tools.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/ivy/tools.go b/example/ivy/tools.go index ab067c2..de6105c 100644 --- a/example/ivy/tools.go +++ b/example/ivy/tools.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build ignore +//go:build tools package dummy