"go mod vendor" will populate the vendor directory in your project, then "go build -mod=vendor" will only use that directory to build.
On Tue, Jun 11, 2019 at 3: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. > 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/CAK4xykXqhBkwrtOASqKdF4vKgeZzOvtERJAYiqatGFb6x9bgYA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.