Skip to content

Commit 40def55

Browse files
[Docs] Shorten the default working_dir warning (#3072)
1 parent 422c5a5 commit 40def55

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

  • src/dstack/_internal/cli/services/configurators

src/dstack/_internal/cli/services/configurators/run.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,8 @@ def apply_configuration(
106106
# relative path for compatibility with pre-0.19.27 servers
107107
conf.working_dir = "."
108108
warn(
109-
"[code]working_dir[/code] is not set."
110-
f" Using legacy working directory [code]{LEGACY_REPO_DIR}[/code]\n\n"
111-
"In future versions the default value will be taken from the image\n"
112-
f"- To keep using legacy working directory, set"
113-
f" [code]working_dir[/code] to [code]{LEGACY_REPO_DIR}[/code]\n"
114-
f"- To prepare for the future default, set [code]working_dir[/code]"
115-
" to the image default working directory (only until the new default"
116-
" takes effect)"
109+
f'The [code]working_dir[/code] is not set — using legacy default [code]"{LEGACY_REPO_DIR}"[/code].'
110+
" Future versions will default to the [code]image[/code]'s working directory."
117111
)
118112
elif not is_absolute_posix_path(working_dir):
119113
legacy_working_dir = PurePosixPath(LEGACY_REPO_DIR) / working_dir

0 commit comments

Comments
 (0)