TBR: v23 tool should only look for subcommands of the form jiri-cmd.
MultiPart: 2/2
Change-Id: I0d56a4afe67558d9b604db76801dcf3a0b4982bb
diff --git a/cmdline/cmdline.go b/cmdline/cmdline.go
index 892fa80..4281b52 100644
--- a/cmdline/cmdline.go
+++ b/cmdline/cmdline.go
@@ -321,11 +321,12 @@
}
}
if cmd.LookPath {
- // Look for a matching executable in PATH.
- subCmd := cmd.Name + "-" + subName
- if lookPath(subCmd, env.pathDirs()) {
- return binaryRunner{subCmd, cmdPath}, subArgs, nil
- }
+ // TODO(nlacasse): Re-enable this once v23->jiri transition is complete.
+ // // Look for a matching executable in PATH.
+ // subCmd := cmd.Name + "-" + subName
+ // if lookPath(subCmd, env.pathDirs()) {
+ // return binaryRunner{subCmd, cmdPath}, subArgs, nil
+ // }
// Look for a matching executable with prefix in LookPathPrefixes.
// TODO(nlacasse): Remove this once the v23->jiri transition is complete.