3 ms·
> Having a global vendor folder where everything is the same version regardless of the project seems like a fragile solution to me That's not what I said. The
by cyphar 10y ago
> Having a global vendor folder where everything is the same version regardless of the project seems like a fragile solution to me
That's not what I said. The way that every Go project used to do this (which was how Godep solved the problem) is that you have a vendor/src directory in the project. It's very similar to having vendor/ in your project, but the issues I mention are because of the lack of the "src" prefix. If it sounds like a trivial difference, that's because it is (but because of Go's lovely filesystem dependencies it makes everything awful).
> I think it's a good thing that Go standardizes vendoring.
Sure. I don't think it's a good thing that they standardised an incompatible solution, apparently ignoring how everyone else in the Go community had solved the problem before them.