summaryrefslogtreecommitdiffstats
path: root/build/scripts
diff options
context:
space:
mode:
authorsvidyuk <[email protected]>2026-04-24 12:36:49 +0300
committersvidyuk <[email protected]>2026-04-24 13:22:16 +0300
commit298086fe47f021cc2e4606f78ee19d7cb772c01e (patch)
treed06420fbb0b8f7337ab84116b28dd01088b80c2e /build/scripts
parentcd465393cf4f26e84ccc5554532cfbde88500f9a (diff)
do not try to run compiler without sources.
Print human readable description instead of misleading compiler help message. commit_hash:78aa6c12f5a3b88535805f3dc5f39565c1295493
Diffstat (limited to 'build/scripts')
-rw-r--r--build/scripts/go_tool.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/build/scripts/go_tool.py b/build/scripts/go_tool.py
index dc89212ed9a..098b3e28039 100644
--- a/build/scripts/go_tool.py
+++ b/build/scripts/go_tool.py
@@ -367,6 +367,9 @@ def do_vet(args):
def _do_compile_go(args):
+ if not args.go_srcs:
+ raise RuntimeError("Attempt to compile go package without source files!")
+
import_path, is_std_module = args.import_path, args.is_std
cmd = [
args.go_compile,