diff -U0 -r -N goworksync_repro/NOTES.txt goworksync_repro/NOTES.txt --- goworksync_repro/NOTES.txt 1970-01-01 01:00:00.000000000 +0100 +++ goworksync_repro/NOTES.txt 2024-03-21 11:34:10.000000000 +0100 @@ -0,0 +1,3 @@ +issue https://github.com/golang/go/issues/50750 +go work sync still reaches for the net + diff -U0 -r -N goworksync_repro/clos/cmd/sign/go.mod goworksync_repro/clos/cmd/sign/go.mod --- goworksync_repro/clos/cmd/sign/go.mod 1970-01-01 01:00:00.000000000 +0100 +++ goworksync_repro/clos/cmd/sign/go.mod 2024-03-21 11:31:53.000000000 +0100 @@ -0,0 +1,9 @@ +module fairbe.org/clos/sign + +go 1.22.1 + +require ( + fairbe.org/moda v0.0.1 + + fairbe.org/modb v0.0.1 +) diff -U0 -r -N goworksync_repro/clos/cmd/sign/main.go goworksync_repro/clos/cmd/sign/main.go --- goworksync_repro/clos/cmd/sign/main.go 1970-01-01 01:00:00.000000000 +0100 +++ goworksync_repro/clos/cmd/sign/main.go 2024-03-21 11:31:53.000000000 +0100 @@ -0,0 +1,12 @@ +package main + +import ( + "fairbe.org/moda" + "fairbe.org/modb" +) + +func main() { + moda.Say("Sign open") + modb.Say("Sign closed") + moda.Shout() +} diff -U0 -r -N goworksync_repro/clos/modb/go.mod goworksync_repro/clos/modb/go.mod --- goworksync_repro/clos/modb/go.mod 1970-01-01 01:00:00.000000000 +0100 +++ goworksync_repro/clos/modb/go.mod 2024-03-21 11:31:53.000000000 +0100 @@ -0,0 +1,6 @@ +module fairbe.org/modb + +go 1.22.1 + +// closed + diff -U0 -r -N goworksync_repro/clos/modb/libmodb.go goworksync_repro/clos/modb/libmodb.go --- goworksync_repro/clos/modb/libmodb.go 1970-01-01 01:00:00.000000000 +0100 +++ goworksync_repro/clos/modb/libmodb.go 2024-03-21 11:31:53.000000000 +0100 @@ -0,0 +1,7 @@ +package modb + +import "fmt" + +func Say(m string) { + fmt.Printf("clos_libmodb: %s\n", m) +} diff -U0 -r -N goworksync_repro/go.work goworksync_repro/go.work --- goworksync_repro/go.work 1970-01-01 01:00:00.000000000 +0100 +++ goworksync_repro/go.work 2024-03-21 11:31:53.000000000 +0100 @@ -0,0 +1,12 @@ +go 1.22.1 + +replace fairbe.org/modb v0.0.1 => ./clos/modb + +replace fairbe.org/moda v0.0.1 => ./open/moda + +use ( + ./clos/cmd/sign + ./clos/modb + ./open/cmd/verf + ./open/moda +) diff -U0 -r -N goworksync_repro/list goworksync_repro/list --- goworksync_repro/list 1970-01-01 01:00:00.000000000 +0100 +++ goworksync_repro/list 2024-03-21 11:31:53.000000000 +0100 @@ -0,0 +1,65 @@ +module fairbe.org/clos/sign + +go 1.22.1 + +require ( + fairbe.org/moda v0.0.1 + + fairbe.org/moda/subaa v0.0.1 + + fairbe.org/moda/subab v0.0.1 + + fairbe.org/modb v0.0.1 +) + +replace ( + fairbe.org/modb => ../../../clos/modb + + fairbe.org/moda => ../../../open/moda + + fairbe.org/moda/subaa => ../../../open/moda/subaa + + fairbe.org/moda/subab => ../../../open/moda/subab +) +module fairbe.org/modb + +go 1.22.1 + +// closed + +module fairbe.org/verify + +go 1.22.1 + +require fairbe.org/moda v0.0.1 + +require fairbe.org/moda/subaa v0.0.1 + +require fairbe.org/moda/subab v0.0.1 + +require fairbe.org/modb v0.0.1 + +replace fairbe.org/modb => ../../../clos/modb + +replace fairbe.org/moda => ../../../open/moda + +replace fairbe.org/moda/subaa => ../../../open/moda/subaa + +replace fairbe.org/moda/subab => ../../../open/moda/subab +module fairbe.org/open/moda + +go 1.22.1 + +require fairbe.org/moda/subaa v0.0.1 + +require fairbe.org/moda/subab v0.0.1 + +replace fairbe.org/moda/subaa => ./subaa + +replace fairbe.org/moda/subab => ./subab +module fairbe.org/moda/subab + +go 1.22.1 +module fairbe.org/moda/subaa + +go 1.22.1 diff -U0 -r -N goworksync_repro/open/cmd/verf/go.mod goworksync_repro/open/cmd/verf/go.mod --- goworksync_repro/open/cmd/verf/go.mod 1970-01-01 01:00:00.000000000 +0100 +++ goworksync_repro/open/cmd/verf/go.mod 2024-03-21 11:31:53.000000000 +0100 @@ -0,0 +1,7 @@ +module fairbe.org/verify + +go 1.22.1 + +require fairbe.org/moda v0.0.1 + +require fairbe.org/modb v0.0.1 diff -U0 -r -N goworksync_repro/open/cmd/verf/main.go goworksync_repro/open/cmd/verf/main.go --- goworksync_repro/open/cmd/verf/main.go 1970-01-01 01:00:00.000000000 +0100 +++ goworksync_repro/open/cmd/verf/main.go 2024-03-21 11:31:53.000000000 +0100 @@ -0,0 +1,12 @@ +package main + +import ( + "fairbe.org/moda" + "fairbe.org/modb" +) + +func main() { + moda.Say("Verify open") + modb.Say("Verify closed") + moda.Shout() +} diff -U0 -r -N goworksync_repro/open/moda/go.mod goworksync_repro/open/moda/go.mod --- goworksync_repro/open/moda/go.mod 1970-01-01 01:00:00.000000000 +0100 +++ goworksync_repro/open/moda/go.mod 2024-03-21 11:31:53.000000000 +0100 @@ -0,0 +1,3 @@ +module fairbe.org/moda + +go 1.22.1 diff -U0 -r -N goworksync_repro/open/moda/internal/subaa/libsubaa.go goworksync_repro/open/moda/internal/subaa/libsubaa.go --- goworksync_repro/open/moda/internal/subaa/libsubaa.go 1970-01-01 01:00:00.000000000 +0100 +++ goworksync_repro/open/moda/internal/subaa/libsubaa.go 2024-03-21 11:31:53.000000000 +0100 @@ -0,0 +1,7 @@ +package subaa + +import "fmt" + +func Say(m string) { + fmt.Printf("open_moda_libsubaa.go: %s\n", m) +} diff -U0 -r -N goworksync_repro/open/moda/internal/subab/libsubab.go goworksync_repro/open/moda/internal/subab/libsubab.go --- goworksync_repro/open/moda/internal/subab/libsubab.go 1970-01-01 01:00:00.000000000 +0100 +++ goworksync_repro/open/moda/internal/subab/libsubab.go 2024-03-21 11:31:53.000000000 +0100 @@ -0,0 +1,7 @@ +package subab + +import "fmt" + +func Say(m string) { + fmt.Printf("open_moda_libsubab.go: %s\n", m) +} diff -U0 -r -N goworksync_repro/open/moda/libmoda.go goworksync_repro/open/moda/libmoda.go --- goworksync_repro/open/moda/libmoda.go 1970-01-01 01:00:00.000000000 +0100 +++ goworksync_repro/open/moda/libmoda.go 2024-03-21 11:31:53.000000000 +0100 @@ -0,0 +1,17 @@ +package moda + +import ( + "fmt" + + "fairbe.org/moda/internal/subaa" + "fairbe.org/moda/internal/subab" +) + +func Say(m string) { + fmt.Printf("open_libmoda.go: %s\n", m) +} + +func Shout() { + subaa.Say("shouting AA") + subab.Say("shouting AB") +}