Hi folks. I was unable to find a good answer online already. The closest I found was
https://stackoverflow.com/questions/14323872/using-forked-package-import-in-go which suggests using the replace directive in go.mod.
I am using Go 1.14, with all projects located outside of GOPATH.
I'm trying to fix it locally before pushing up. So, what I have locally is
1) A new module agout_test, which contains "replace
github.com/bradbev/agouti => ../agouti" in go.mod so that my test project references a local copy
2) A local copy of bradbev/agouti at ../agouti.
✘-1 ~/development/gomod/agouti_test
22:51 $ go build main.go && ./main
This suggests to me that the replace directive is working, but is being disallowed for "/internal" packages.
What is the correct way to fork this module please?
Thanks,
Brad