From b0e7f5251df9a5baa3f81a0c9b134b88cceb92fb Mon Sep 17 00:00:00 2001 From: Dmitry Meyer Date: Tue, 20 Jan 2026 09:17:45 +0000 Subject: [PATCH] [runner] Restore `--home-dir` option as no-op Fixes: https://github.com/dstackai/dstack/issues/3474 --- runner/cmd/runner/main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/runner/cmd/runner/main.go b/runner/cmd/runner/main.go index c2ed94f0e..c8125dc84 100644 --- a/runner/cmd/runner/main.go +++ b/runner/cmd/runner/main.go @@ -78,6 +78,12 @@ func mainInner() int { Usage: "dstack server or user authorized key. May be specified multiple times", Destination: &sshAuthorizedKeys, }, + // --home-dir is not used since 0.20.4, but the flag was retained as no-op + // for compatibility with pre-0.20.4 shims; remove the flag eventually + &cli.StringFlag{ + Name: "home-dir", + Hidden: true, + }, }, Action: func(ctx context.Context, cmd *cli.Command) error { return start(ctx, tempDir, httpPort, sshPort, sshAuthorizedKeys, logLevel, Version)