x/build/cmd/gomote: "--i-will-not-break-the-host" flag breaks argument order #39020
Labels
Builders
x/build issues (builders, bots, dashboards)
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
gomote ssh
currently requires an extra flag,--i-will-not-break-the-host
, when connecting to a non-hermetic builder.Unlike all of the other
gomote
flags, this one must be positioned ahead of the subcommand instead of behind it. That needlessly breaks scripts that wrapgomote
for more ergonomic use (#29037).Honestly, this flag is pretty obnoxious anyway — I think it should probably be replaced with a warning at login rather than an explicit flag. But if we keep the flag, it should at least be fixed so that it parses in the usual order for subcommand flags.
CC @andybons @bradfitz
The text was updated successfully, but these errors were encountered: