Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: mod vendor should work offline #28029
What version of Go are you using (
Hi @mihaiav, is your example a case where
I suspect you have a few options, but probably worthwhile to say a few more words about your goals.
Vendoring with modules in 1.11 might be one approach that ends up working out for you, and that might be the simplest answer.
That said, an alternative approach might be one of a few different options involving
Also, here is a nice end-to-end example from @myitcv of using GOPROXY with a filesystem:
However, the best approach likely depends on exactly what you are trying to do, and what your exact constraints are.
referenced this issue
Nov 16, 2018
Bootstrapping an unpublished module into the module cache is a separate problem, for which I've filed #28835. I'd rather do that than copy the source directly into the
You should be able to set up a