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 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.


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.
> 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/CAKOF697O1_6cG6W%2ByG3wYY%3Dm31xymBMxD-poDLYcZwN%3DsPr4Wg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[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" 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.