On Thursday, 8 April 2021 at 12:48:28 UTC+2 nick....@gmail.com wrote:

> But what if you don't even have a domain for your source code? Sure you 
> can use a fake domain like "foo.example"
>

It doesn't have to be a fake domain name, just a module name, e.g. "foo".
 

> and then use replace, and then remember to not commit the replace because 
> someone else may have the code in a different location, etc etc. Imagine if 
> it was the other way around:
>
> my_source_location/
>     ProjectA/
>         go.mod
>           module ProjectA
>           replace /home/nick/src/ProjectA => mydomain.com/group/ProjectA
>     ProjectB/
>         go.mod
>           module ProjectB
>           replace /home/nick/src/ProjectB => mydomain.com/group/ProjectB
>

If you're only tinkering without publishing you can put the go.mod directly 
under "my_source_location", then you have your own GOPATH-like environment.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/57f57bcf-2c13-4a98-936f-8f7f54b4351en%40googlegroups.com.

Reply via email to