From abe0437cd92d236c8405f4d0d34e600349d3398c Mon Sep 17 00:00:00 2001 From: peterschmidt85 Date: Thu, 4 Sep 2025 12:55:07 +0200 Subject: [PATCH] [Docs] Shorten the default `working_dir` warning --- src/dstack/_internal/cli/services/configurators/run.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/dstack/_internal/cli/services/configurators/run.py b/src/dstack/_internal/cli/services/configurators/run.py index 21402dfca..cdbd324a6 100644 --- a/src/dstack/_internal/cli/services/configurators/run.py +++ b/src/dstack/_internal/cli/services/configurators/run.py @@ -106,14 +106,8 @@ def apply_configuration( # relative path for compatibility with pre-0.19.27 servers conf.working_dir = "." warn( - "[code]working_dir[/code] is not set." - f" Using legacy working directory [code]{LEGACY_REPO_DIR}[/code]\n\n" - "In future versions the default value will be taken from the image\n" - f"- To keep using legacy working directory, set" - f" [code]working_dir[/code] to [code]{LEGACY_REPO_DIR}[/code]\n" - f"- To prepare for the future default, set [code]working_dir[/code]" - " to the image default working directory (only until the new default" - " takes effect)" + f'The [code]working_dir[/code] is not set — using legacy default [code]"{LEGACY_REPO_DIR}"[/code].' + " Future versions will default to the [code]image[/code]'s working directory." ) elif not is_absolute_posix_path(working_dir): legacy_working_dir = PurePosixPath(LEGACY_REPO_DIR) / working_dir