Ok, this is promising. Thanks for testing it. -Bruno
On Fri, Sep 15, 2023 at 4:58 AM Jan Mercl <0xj...@gmail.com> wrote: > On Fri, Sep 15, 2023 at 10:31 AM 'Jim Idle' via golang-nuts < > golang-nuts@googlegroups.com> wrote: > > > The go.mod at the root was one thing that might work, but it will cause > the entire repo to be pulled in so the tag will still have to be sec/go/ > etc. > > tl;dr: Putting a go.mod in the repository root has no additional costs for > the repo users. > > I was curious if the entire repo would be pulled, that would surprise me. > Turns out that's not the case. > > ---- > 0:jnml@e5-1650:/tmp/mod$ ls -la > total 500 > drwxr-xr-x 2 jnml jnml 4096 Sep 15 10:47 . > drwxrwxrwt 164 root root 487424 Sep 15 10:49 .. > -rw-r--r-- 1 jnml jnml 937 Sep 15 10:45 go.mod > -rw-r--r-- 1 jnml jnml 5461 Sep 15 10:45 go.sum > -rw-r--r-- 1 jnml jnml 83 Sep 15 10:45 main.go > 0:jnml@e5-1650:/tmp/mod$ cat go.mod > module example.com/mod > > go 1.21.1 > > require modernc.org/ccgo/v4 v4.0.0 > > require ( > github.com/dustin/go-humanize v1.0.1 // indirect > github.com/google/uuid v1.3.0 // indirect > github.com/kballard/go-shellquote > v0.0.0-20180428030007-95032a82bc51 // indirect > github.com/mattn/go-isatty v0.0.16 // indirect > github.com/remyoudompheng/bigfft > v0.0.0-20230129092748-24d4a6f8daec // indirect > golang.org/x/mod v0.11.0 // indirect > golang.org/x/sys v0.9.0 // indirect > golang.org/x/tools v0.10.0 // indirect > lukechampine.com/uint128 v1.2.0 // indirect > modernc.org/cc/v3 v3.41.0 // indirect > modernc.org/cc/v4 v4.14.2 // indirect > modernc.org/ccgo/v3 v3.16.15 // indirect > modernc.org/gc/v2 v2.3.0 // indirect > modernc.org/libc v1.24.1 // indirect > modernc.org/mathutil v1.6.0 // indirect > modernc.org/memory v1.7.0 // indirect > modernc.org/opt v0.1.3 // indirect > modernc.org/strutil v1.2.0 // indirect > modernc.org/token v1.1.0 // indirect > ) > 0:jnml@e5-1650:/tmp/mod$ cat main.go > package main > > import "modernc.org/ccgo/v4" > > func main() { > println(&ccgo.Task{}) > } > 0:jnml@e5-1650:/tmp/mod$ go clean -cache -modcache -testcache ; sudo rm > -rf ~/pkg ~/.cache/go-build/ > 0:jnml@e5-1650:/tmp/mod$ go build -v -x |& grep 'ccgo.*\.zip' > # get https://proxy.golang.org/modernc.org/ccgo/v4/@v/v4.0.0.zip > # get https://proxy.golang.org/modernc.org/ccgo/v4/@v/v4.0.0.zip: 200 OK > (0.111s) > # get https://proxy.golang.org/modernc.org/ccgo/v3/@v/v3.16.15.zip > # get https://proxy.golang.org/modernc.org/ccgo/v3/@v/v3.16.15.zip: 200 > OK (0.032s) > 0:jnml@e5-1650:/tmp/mod$ > ---- > > Note: ccgo/v4 depends on ccgo/v3 but that's not relevant to this > experiment. > > -j > > -- > 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/CAA40n-UbYxMCJ8T6QMApV1xme9C9JNR3EjRjh_CT0xoyoU1Wew%40mail.gmail.com > <https://groups.google.com/d/msgid/golang-nuts/CAA40n-UbYxMCJ8T6QMApV1xme9C9JNR3EjRjh_CT0xoyoU1Wew%40mail.gmail.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/CAEd86TwGCqJCozZUqg%2BM7BrOmZLksOP4Pw2zOjDHC03wVtAMKw%40mail.gmail.com.