Skip to content

Commit

Permalink
example/ivy: use tools build constraint in tools.go
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Dmitri Shuralyov <[email protected]>
Auto-Submit: Dmitri Shuralyov <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
  • Loading branch information
dmitshur authored and gopherbot committed Nov 8, 2024
1 parent 2b9d635 commit cee99c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/ivy/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit cee99c0

Please sign in to comment.