What error do you see? Are your subdirectories independent modules in their own right (i.e. they have their own "go.mod"), or just separate packages within the same module (go.mod only exists at the top level)? Normally the latter is what you want.
On Wednesday, 17 March 2021 at 17:57:55 UTC Hotei wrote: > Heeding the prodding of the go gurus on this list I just converted a bunch > of old code to modules and was wondering what the "module" equivalent to > "go build ./..." is. I used to be able to use that command at the top of > my code tree and it would attempt to build everything in the subdirs. > Doesn't seem to work now even though each subdir compiles fine > individually. Haven't been reading golang-nuts every day so sorry if I > missed a previous topic that solves this. > > Thanks > > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/2fbc1740-5c4a-4b4c-9092-b636c271ccf2n%40googlegroups.com.
