[go-nuts] Re: go.mod necessary for GitHub package?
Sorry, I used an incorrect example. The final user is supposed to be in module mode and even if in GOPATH mode, the latest version is still compatible with the old version. On Sunday, May 16, 2021 at 4:04:38 PM UTC+2 Manlio Perillo wrote: > One example (not tested) is the case of a module X that depends on A and B. > A depends on an old version of github.com/speedata/hyphenation, and B > depends on a new version (that is compatible with the old version but has a > new API). > > In GOPATH mode, X can not be built. > > > Manlio > On Sunday, May 16, 2021 at 3:36:53 PM UTC+2 Patrick wrote: > >> OK, but what are the advantages for others? >> >> For my projects I use modules (locally) to have a list of dependencies >> with a checksum so builds could be reproducible. This works for remote >> packages with and without go.mod. What is the actual value for other users? >> Is this about versioning (semantic versioning)? Or is it easier to checksum? >> >> Thanks >> >> Patrick >> >> >> -- 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/b698e9bc-b07b-441e-a95c-d40da680a658n%40googlegroups.com.
[go-nuts] Re: go.mod necessary for GitHub package?
One example (not tested) is the case of a module X that depends on A and B. A depends on an old version of github.com/speedata/hyphenation, and B depends on a new version (that is compatible with the old version but has a new API). In GOPATH mode, X can not be built. Manlio On Sunday, May 16, 2021 at 3:36:53 PM UTC+2 Patrick wrote: > OK, but what are the advantages for others? > > For my projects I use modules (locally) to have a list of dependencies > with a checksum so builds could be reproducible. This works for remote > packages with and without go.mod. What is the actual value for other users? > Is this about versioning (semantic versioning)? Or is it easier to checksum? > > Thanks > > Patrick > > > -- 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/341099c0-f419-45ee-8084-88043e7332f5n%40googlegroups.com.
[go-nuts] Re: go.mod necessary for GitHub package?
OK, but what are the advantages for others? For my projects I use modules (locally) to have a list of dependencies with a checksum so builds could be reproducible. This works for remote packages with and without go.mod. What is the actual value for other users? Is this about versioning (semantic versioning)? Or is it easier to checksum? Thanks Patrick -- 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/7a74965f-900a-4148-a91d-b620445e2b68n%40googlegroups.com.
[go-nuts] Re: go.mod necessary for GitHub package?
The advantage of adding a go.mod file is not for you, but for people that will add your package as a dependency. Manlio On Sunday, May 16, 2021 at 8:25:23 AM UTC+2 Patrick wrote: > Hello all, > > I have a small package without any dependencies (besides standard library) > on GitHub. Just a single .go file and a test file. > > Question: do I need a go.mod file? Does it give any advantages over not > having one? > > The package works fine by just importing it. > > Patrick > > (The package is located at https://github.com/speedata/hyphenation ) > > -- 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/0397ac02-4edd-482c-820d-f23f2b48ccffn%40googlegroups.com.