Is it possible to use a different executable name when installing by
go build has a
-o flag I can use but for consumers of my package.
The context is that company repo mandates naming conventions for the git repos.
But that breaks
go: git.company.com/pkg/GoPkg-MyTool.git upgrade => v0.0.0-20210121150345-6241afcc3125 go get: git.company.com/pkg/GoPkg-MyTool.firstname.lastname@example.org: parsing go.mod: module declares its path as: git.company.com/pkg/mytool but was required as: git.company.com/pkg/GoPkg-MyTool.git
It would be nice to be able to use
go get and have it install the tool as
mytool without going through more manual steps (
mv GoPkg-MyTool mytool for example)