From 68adae5030ab51c31c628c32c6868ead5ea57c52 Mon Sep 17 00:00:00 2001 From: Tamim Hossain Date: Thu, 20 Aug 2026 18:22:06 +0600 Subject: [PATCH] Add Tools .go Solves the annoying problem when first time building binary, cc @yiguodev --- go.mod | 2 -- tools.go | 10 ++++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 tools.go diff --git a/go.mod b/go.mod index 3cb04fc5..cef1f3b3 100644 --- a/go.mod +++ b/go.mod @@ -62,5 +62,3 @@ require ( gvisor.dev/gvisor v0.0.0-20260122175437-89a5d21be8f0 // indirect lukechampine.com/blake3 v1.4.1 // indirect ) - -tool golang.org/x/mobile/cmd/gobind diff --git a/tools.go b/tools.go new file mode 100644 index 00000000..65da148b --- /dev/null +++ b/tools.go @@ -0,0 +1,10 @@ +//go:build tools +// +build tools + +// See https://github.com/golang/go/wiki/Modules#how-can-i-track-tool-dependencies-for-a-module +package tools + +import ( + _ "golang.org/x/mobile/cmd/gobind" + _ "golang.org/x/mobile/cmd/gomobile" +)