We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9caba5 commit bc2ae06Copy full SHA for bc2ae06
src/dstack/_internal/server/services/runs/spec.py
@@ -114,7 +114,12 @@ def validate_run_spec_and_set_defaults(
114
raise ServerClientError("ssh_key_pub must be set if the user has no ssh_public_key")
115
if run_spec.configuration.working_dir is None and legacy_repo_dir:
116
run_spec.configuration.working_dir = LEGACY_REPO_DIR
117
- if run_spec.repo_dir is None and FeatureFlags.LEGACY_REPO_DIR_DISABLED and not legacy_repo_dir:
+ if (
118
+ run_spec.configuration.repos
119
+ and run_spec.repo_dir is None
120
+ and FeatureFlags.LEGACY_REPO_DIR_DISABLED
121
+ and not legacy_repo_dir
122
+ ):
123
raise ServerClientError("Repo path is not set")
124
125
0 commit comments