On Thu, Apr 8, 2021 at 2:08 PM 'Carla Pfaff' via golang-nuts < golang-nuts@googlegroups.com> wrote:
> 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". > Right, I don't actually do that, I just see that mentioned a lot. > > >> 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. > In my case, we have an internal git server at work that we just access over ssh. We have a few dependencies between repositories and a few developers working on the same repository. I'm assuming this is a rare scenario, but it is one use case that I think modules have made the work flow more inconvenient. > -- > 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 > <https://groups.google.com/d/msgid/golang-nuts/57f57bcf-2c13-4a98-936f-8f7f54b4351en%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAPKajN6Q5AomVmSZyGX_EqUn0D22KandwGviOxZW6Xi1_vAWSg%40mail.gmail.com.