Re: [go-nuts] workspace question

2022-10-12 Thread Steve Roth
Thank you, Jan. Apparently where I went wrong was assuming that the dependency had to be listed in go.mod. (i.e., using the names from your example, foo/go.mod needed to have a "require bar" in it). That is what I was struggling to achieve; it never occurred to me that it could be omitted. I'm

Re: [go-nuts] workspace question

2022-10-11 Thread Jan Mercl
On Wed, Oct 12, 2022 at 4:49 AM Steve Roth wrote: > > I'd appreciate help with setting up a workspace, involving two modules that exist only on my local disk and not in any SCM. I understand how to create the workspace and use both modules in it. What I can't figure out is how to add a dependenc

[go-nuts] workspace question

2022-10-11 Thread Steve Roth
I'd appreciate help with setting up a workspace, involving two modules that exist only on my local disk and not in any SCM. I understand how to create the workspace and use both modules in it. What I can't figure out is how to add a dependency from mod1 to mod2 in mod1's go.mod file. The support