On Fri, Sep 28, 2018 at 10:19:50AM -0700,
thepud...@gmail.com wrote:
> Hi Harmen,
>
> And my first sentence might not have been clear. When I said "even in your
> current situation, 'go build' is still pulling in exactly what it needs", I
> was trying to reference the actual compilation process.
>
> In other words, I was just trying to make it clear that even if you have
> "extra" dependencies appearing in your go.mod file, the resulting binary
> produced by 'go build' does not have anything extra or any unused
> dependencies.
Hi thepudds,
thanks for your anwers.
It doesn't hurt per-se, but all those unused modules will be vendored in the
repo (or the CI will have to download them every time). Maybe the consul repo
is a particularly unlucky repo, since the /api package is small compared to the
rest of the repo, but still.
As for the argument that it's for test reproducibility, I do not follow that.
Everything to test /api is there, and the stuff I don't import doesn't need to
be tested in the first place.
> In any event, I wanted to share at least my personal understanding, but of
> course happy to learn more...
I'm trying to do the same :)
Thanks!
> --
> 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...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.