Commit e6841298 authored by Jay Conrod's avatar Jay Conrod

all: update 'go get' command in standard library README.vendor

The -m flag is removed in Go 1.13. -d should be used instead.

Change-Id: Ia53764748309f16cb231e5ac6770400a73804484
Reviewed-on: https://go-review.googlesource.com/c/go/+/191621
Run-TryBot: Jay Conrod <jayconrod@google.com>
Reviewed-by: default avatarDmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent 145e1931
...@@ -41,13 +41,13 @@ The vendor directory may be updated with 'go mod vendor'. ...@@ -41,13 +41,13 @@ The vendor directory may be updated with 'go mod vendor'.
A typical sequence might be: A typical sequence might be:
cd src cd src
go get -m golang.org/x/net@latest go get -d golang.org/x/net@latest
go mod tidy go mod tidy
go mod vendor go mod vendor
Use caution when passing '-u' to 'go get'. The '-u' flag updates Use caution when passing '-u' to 'go get'. The '-u' flag updates
modules providing all transitively imported packages, not just modules providing all transitively imported packages, not only
the target module. the module providing the target package.
Note that 'go mod vendor' only copies packages that are transitively Note that 'go mod vendor' only copies packages that are transitively
imported by packages in the current module. If a new package is needed, imported by packages in the current module. If a new package is needed,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment