So far I’m been installing this module manually (git clone && cd && go build), but I’ll like to use go install, however I’m having trouble doing so, due to the name that the package author decided to use for their module.
I’m trying to to install this module.:
However when I try to use go install, go install complains because the go.mod there is named
go.amzn.com, more precisely the error go install generates is the following:
go: github.com/aws/aws-lambda-runtime-interface-emulator/cmd/aws-lambda-rie@latest: version constraints conflict: firstname.lastname@example.org: parsing go.mod: module declares its path as: go.amzn.com but was required as: github.com/aws/aws-lambda-runtime-interface-emulator
I thought ok so for sure I can use a .mod to indicate a rename, but If I do that,
go install complains differently.
go: -modfile cannot be used with commands that ignore the current module
Is there any easy way to build out tools/modules that use configuration that is not go install friendly? So I don’t need to clone && cd and && build myself?