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