I think "go mod vendor" does the trick as stated in "go mod help vendor".
On Tue, Jun 11, 2019 at 11:12 AM 唐彦昭 <tyz527646...@gmail.com> wrote: > I need put my project on the server to compile.But my server can't connect > to internet. > So I need to put all my relay in my vendor folder in my develop > environment. > How can I do this with go modules? > > -- > 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/e7f1ae76-3d41-494b-b771-0efc1a3c5784%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/e7f1ae76-3d41-494b-b771-0efc1a3c5784%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAKOF697O1_6cG6W%2ByG3wYY%3Dm31xymBMxD-poDLYcZwN%3DsPr4Wg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.