Skip to content

Commit 9955a7e

Browse files
ianlancetaylorgopherbot
authored andcommitted
README.vendor: minor updates
Change-Id: Iaacc96e6302833019ebf7a82d5a1ae49f6ff1955 Reviewed-on: https://go-review.googlesource.com/c/go/+/460175 Run-TryBot: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Bryan Mills <[email protected]> Reviewed-by: Heschi Kreinick <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
1 parent d03231d commit 9955a7e

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

src/README.vendor

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,8 @@ Vendoring in std and cmd
44
The Go command maintains copies of external packages needed by the
55
standard library in the src/vendor and src/cmd/vendor directories.
66

7-
In GOPATH mode, imports of vendored packages are resolved to these
8-
directories following normal vendor directory logic
9-
(see golang.org/s/go15vendor).
10-
11-
In module mode, std and cmd are modules (defined in src/go.mod and
12-
src/cmd/go.mod). When a package outside std or cmd is imported
7+
There are two modules, std and cmd, defined in src/go.mod and
8+
src/cmd/go.mod. When a package outside std or cmd is imported
139
by a package inside std or cmd, the import path is interpreted
1410
as if it had a "vendor/" prefix. For example, within "crypto/tls",
1511
an import of "golang.org/x/crypto/cryptobyte" resolves to
@@ -34,14 +30,15 @@ Maintaining vendor directories
3430
==============================
3531

3632
Before updating vendor directories, ensure that module mode is enabled.
37-
Make sure GO111MODULE=off is not set ('on' or 'auto' should work).
33+
Make sure that GO111MODULE is not set in the environment, or that it is
34+
set to 'on' or 'auto'.
3835

3936
Requirements may be added, updated, and removed with 'go get'.
4037
The vendor directory may be updated with 'go mod vendor'.
4138
A typical sequence might be:
4239

4340
cd src
44-
go get -d golang.org/x/net@latest
41+
go get golang.org/x/net@latest
4542
go mod tidy
4643
go mod vendor
4744

0 commit comments

Comments
 (0)