aboutsummaryrefslogtreecommitdiff
path: root/src/cmd
diff options
context:
space:
mode:
authorTony Tang <jianfeng.tony@gmail.com>2026-02-13 22:59:08 +0000
committerGopher Robot <gobot@golang.org>2026-02-13 15:51:03 -0800
commit9c9412cbad09ed7fc253de3ccfeea9ca18d22943 (patch)
tree42aa30f8dbaf459a67c345caa7f80a20d3c43c99 /src/cmd
parent770864f3b452dbd83e33e42b9659c387d03425b9 (diff)
downloadgo-9c9412cbad09ed7fc253de3ccfeea9ca18d22943.tar.xz
cmd/go/internal/vcs: delete go-internal argument handling dead code
These two code paths handle arguments internally used by the go command, but CL 736710 removed all of their uses. Remove their handling code too. Change-Id: I99f50ef4916f29e56f5d5aaeb3c48bae4bf0b74d GitHub-Last-Rev: 0f109f2c48098c4ac5a8b695cead075f12e22e81 GitHub-Pull-Request: golang/go#77600 Reviewed-on: https://go-review.googlesource.com/c/go/+/745300 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Roland Shoemaker <roland@golang.org> Reviewed-by: Tony Tang <jianfeng.tony@gmail.com>
Diffstat (limited to 'src/cmd')
-rw-r--r--src/cmd/go/internal/vcs/vcs.go23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/cmd/go/internal/vcs/vcs.go b/src/cmd/go/internal/vcs/vcs.go
index 5613e79e7c..0822844127 100644
--- a/src/cmd/go/internal/vcs/vcs.go
+++ b/src/cmd/go/internal/vcs/vcs.go
@@ -11,7 +11,6 @@ import (
"internal/godebug"
"internal/lazyregexp"
"internal/singleflight"
- "io/fs"
"log"
urlpkg "net/url"
"os"
@@ -488,28 +487,6 @@ func (v *Cmd) run1(dir string, cmdline string, keyval []string, verbose bool) ([
args[i] = expand(m, arg)
}
- if len(args) >= 2 && args[0] == "--go-internal-mkdir" {
- var err error
- if filepath.IsAbs(args[1]) {
- err = os.Mkdir(args[1], fs.ModePerm)
- } else {
- err = os.Mkdir(filepath.Join(dir, args[1]), fs.ModePerm)
- }
- if err != nil {
- return nil, err
- }
- args = args[2:]
- }
-
- if len(args) >= 2 && args[0] == "--go-internal-cd" {
- if filepath.IsAbs(args[1]) {
- dir = args[1]
- } else {
- dir = filepath.Join(dir, args[1])
- }
- args = args[2:]
- }
-
_, err := pathcache.LookPath(v.Cmd)
if err != nil {
fmt.Fprintf(os.Stderr,