Hi John,
When using a replace target that is a local filepath, yes, the target
does need to be a module (this is in effect simulated by the go tool
when a "module" is fetched from a remote VCS in case a project is not
a module).
That's fixed in the most simple cases by creating a go.mod file in the
target directory, either:
go mod init
go mod init
example.com/blah
Depending on your workflow, you might also be interested in
https://github.com/rogpeppe/gohack which was created to experiment
with workflows around working on local module replace-ments.
Thanks,
Paul
> --
> You received this message because you are subscribed to the Google Groups "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
golang-nuts...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.