If you are happy publishing a zip archive rather than a tarball, then you can server the module download protocol directly. See https://research.swtch.com/vgo-module#download_protocol
On Sunday, 5 January 2020 05:11:32 UTC, wgr wrote: > > On 2020-01-04 15:54, volf...@gmail.com <javascript:> wrote: > > Greetings, > > > > I would like to ask if it is possible to publish go module using tarball > and > > later on somehow use it. All examples I was able are about using go > modules > > from some git repository. However, what I would like to do is publish > > tarball > > Would `go mod vendor` then building with `go build -mod=vendor` or > `GOFLAGS=-mod=vendor go build` work for you? > -- 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/a5a8352d-edbc-470d-8c22-eb624ba9a75c%40googlegroups.com.