]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go/internal/workcmd: remove a potentially confusing statement
authorMichael Matloob <matloob@golang.org>
Mon, 1 Jul 2024 18:13:21 +0000 (14:13 -0400)
committerMichael Matloob <matloob@golang.org>
Mon, 1 Jul 2024 19:41:15 +0000 (19:41 +0000)
A statement in the go work use docs that was meant to clarify that go
work use would clean up use statements where the directories did not
exist ended up causing confusion.

Remove that statement for now. We might want to add something back in
the future.

For #68245

Change-Id: I7f6646b5dd05c18aa15e0e54f2816753f318404e
Reviewed-on: https://go-review.googlesource.com/c/go/+/595536
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Eli Bendersky <eliben@google.com>
src/cmd/go/alldocs.go
src/cmd/go/internal/workcmd/use.go

index 2840ba6ea9f2208f11f7bd1bf905282cdc8da812..75e6d65d0c98908696156cc607a44fc3d7a9077c 100644 (file)
 //
 // The -r flag searches recursively for modules in the argument
 // directories, and the use command operates as if each of the directories
-// were specified as arguments: namely, use directives will be added for
-// directories that exist, and removed for directories that do not exist.
+// were specified as arguments.
 //
 // See the workspaces reference at https://go.dev/ref/mod#workspaces
 // for more information.
index 55477119d4605cb2e1f99a52f0d0ae96e78089c9..0cdbed6b18b05d6f310f17637049296079733eb7 100644 (file)
@@ -42,8 +42,7 @@ thing that go work use does.
 
 The -r flag searches recursively for modules in the argument
 directories, and the use command operates as if each of the directories
-were specified as arguments: namely, use directives will be added for
-directories that exist, and removed for directories that do not exist.
+were specified as arguments.