diff options
| author | svidyuk <[email protected]> | 2026-04-24 12:36:49 +0300 |
|---|---|---|
| committer | svidyuk <[email protected]> | 2026-04-24 13:22:16 +0300 |
| commit | 298086fe47f021cc2e4606f78ee19d7cb772c01e (patch) | |
| tree | d06420fbb0b8f7337ab84116b28dd01088b80c2e /build/scripts | |
| parent | cd465393cf4f26e84ccc5554532cfbde88500f9a (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.py | 3 |
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, |
