I'm currently working something on AWS Cloudformation which using this repo https://github.com/awslabs/goformation. Because I did some customise so I made a fork https://github.com/vrealzhou/goformation.
Now in my other project (using go module) I'm trying to using go get github.com/vrealzhou/[email protected]
and I've got this error:
go: github.com/vrealzhou/[email protected]: parsing go.mod: unexpected module path "github.com/awslabs/goformation"
go: error loading module requirements
Does anyone know the reason and how to solve this problem? Thanks
replace
in yourgo.mod
to do exactly what you're looking for - use a fork without updating imports or anything. I posted an answer with the updates needed for thego.mod
. – Webbing