Re: [go-nuts] How can I compile my project only relay on my vendor folder with go modules?

2019-06-11 Thread andrey mirtchovski
"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 唐彦昭 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 m

Re: [go-nuts] How can I compile my project only relay on my vendor folder with go modules?

2019-06-11 Thread Henrik Johansson
I think "go mod vendor" does the trick as stated in "go mod help vendor". On Tue, Jun 11, 2019 at 11:12 AM 唐彦昭 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. > Ho

[go-nuts] How can I compile my project only relay on my vendor folder with go modules?

2019-06-11 Thread 唐彦昭
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" grou