V4 clearly depends in some form or another on the earlier version. This on its face also is not necessarily bad. At the end of the day here, we’re talking about an absolutely tiny amount of data. I hear that you’re new. I hope I’m successful in setting expectations that even 10s of small transitive dependencies does not indicate a problem and certainly is not “bloated beyond repair”. What resources are you concerned with? Was the compile time slow? Is the number of files upsetting? My best guess is absolutely not! Code depending on other code which is modularity designed to fit together is a very good thing. Just trust it for now and raise concerns in the context of problems backed by data. When you start to have a bad time for real rather than perceived reasons, come back and let us know.
-Andrew On Mon, Feb 22, 2021 at 10:09 AM Paul Förster <paul.foers...@gmail.com> wrote: > Hi Andrew, > > > On 22. Feb, 2021, at 16:02, Andrew Werner <awerne...@gmail.com> wrote: > > > > Hi Paul, > > > > What makes you say that that is “heavyweight”? For what it’s worth, many > of those modules used to just be directories inside the pgx library. > Splitting them out has been good for the ecosystem. In general, I’d > encourage you not to worry about a small handful of transitive > dependencies, especially if they are standard “x” libraries and things from > the library author as is the case here. > > > > Best, > > Andrew > > for example go get saying: > go: downloading github.com/jackc/pgx v3.6.2+incompatible > > and downloading much other stuff makes me think it's heavyweight (at least > on the modcache). Why is it downloading v3 stuff when I explicitly stated > v4 in my go get command? > > Maybe I'm wrong, maybe I just haven't grasped the module concept fully > yet, I don't know. That's why I asked. As I said, I'm new to Go and just > making my first steps beyond simple things. > > Cheers, > Paul -- 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/CA%2BvRuzPZ%2BFU5%2BgVnYECq4TezbY3zOOT2NioiT067COPkVT1AYw%40mail.gmail.com.