Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix flag validation
  • Loading branch information
Emyrk committed Jul 13, 2023
commit de4d62863acca7fb8d2d626843a8fa3e56562394
4 changes: 4 additions & 0 deletions cli/configssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,10 @@ func (r *RootCmd) configSSH() *clibase.Cmd {
Description: "Optionally specify the absolute path to the coder binary used in ProxyCommand. " +
"By default, the binary invoking this command ('config ssh') is used.",
Value: clibase.Validate(clibase.StringOf(&coderCliPath), func(value *clibase.String) error {
if runtime.GOOS == goosWindows {
// For some reason filepath.IsAbs() does not work on windows.
return nil
}
absolute := filepath.IsAbs(value.String())
if !absolute {
return xerrors.Errorf("coder cli path must be an absolute path")
Expand Down