Open seankhliao opened 6 hours ago
Related Issues
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
cc @matloob @samthanawalla @ConradIrwin
Change https://go.dev/cl/631075 mentions this issue: go/cmd: pass os.Args[0] to mod tools
Thanks for testing this out @seankhliao! - sent a fix, and please let me know if you run into anything else with this feature.
Go version
go version devel go1.24-efe0a86551 2024-11-21 20:50:15 +0000 linux/amd64
Output of
go env
in your module/workspace:What did you do?
With a basic tool like: https://go.dev/play/p/0MpgRS3gwFS Invoking it results in:
What did you see happen?
The tool doesn't receive its own name in os.Args[0], messing up argument / flag parsing.
What did you expect to see?
the usual os.Args