From 47b3ab5ede452a88c2da4c5eaf092b2d707d2ff4 Mon Sep 17 00:00:00 2001
From: "Bryan C. Mills"
Date: Wed, 10 Nov 2021 16:57:14 -0500
Subject: [PATCH] doc/go1.18: add a release note for 'go mod vendor -o'
For #47327
Change-Id: I50418c0d017c4e90a2c13d26945ee639079e4e33
Reviewed-on: https://go-review.googlesource.com/c/go/+/363174
Trust: Bryan C. Mills
Run-TryBot: Bryan C. Mills
TryBot-Result: Go Bot
Reviewed-by: Paschalis Tsilias
Reviewed-by: Ian Lance Taylor
---
doc/go1.18.html | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/doc/go1.18.html b/doc/go1.18.html
index 44c56444fc..bec9ada383 100644
--- a/doc/go1.18.html
+++ b/doc/go1.18.html
@@ -114,6 +114,15 @@ Do not send CLs removing the interior tags from such phrases.
go
mod
download
all
.
+
+ The go
mod
vendor
subcommand now
+ supports a -o
flag to set the output directory.
+ (Other go
commands still read from the vendor
+ directory at the module root when loading packages
+ with -mod=vendor
, so the main use for this flag is for
+ third-party tools that need to collect package source code.)
+
+
TODO: https://golang.org/cl/349595: cmd/go: add GOAMD64 environment variable
--
2.50.0