Skip to content

Add declarative repo configuration - #3023

Merged
un-def merged 2 commits into
masterfrom
issue_2851_configuration_repos
Aug 25, 2025
Merged

un-def merged 2 commits into
masterfrom
issue_2851_configuration_repos

Conversation

@un-def

@un-def un-def commented Aug 25, 2025

Copy link
Copy Markdown
Collaborator
  • repos[].local_path,url are equivalent to --repo option, the CLI option overrides the YAML configuration
  • Legacy flow with implicitly loaded repos still supported but deprecated
  • Repo info is no longer written to config.yml, but existing records are used for legacy flow
  • dstack init is extended with --repo/-P, as in dstack apply

Updated docs and repos[].path support will be added in separate PRs.

Part-of: #2851

un-def added 2 commits August 25, 2025 08:44
* `repos[].local_path,url` are equivalent to `--repo` option, the CLI
  option overrides the YAML configuration
* Legacy flow with implicitly loaded repos still supported but
  deprecated
* Repo info is no longer written to `config.yml`, but existing records
  are used for legacy flow
* `dstack init` is extended with `--repo`/`-P`, as in `dstack apply`

Updated docs and `repos[].path` support will be added in separate PRs.

Part-of: #2851
@un-def
un-def requested a review from r4victor August 25, 2025 08:55

@r4victor r4victor left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose nothing happens if I specify configuration.repos in Python/HTTP API? That's fine, just pointing that configuration.repos can be stored on the server when submitted via HTTP API.

@un-def

un-def commented Aug 25, 2025 •

Copy link
Copy Markdown
Collaborator Author

I suppose nothing happens if I specify configuration.repos in Python/HTTP API?

That's correct, Python API methods still require the repo argument, repos in the configuration is currently ignored.

configuration.repos can be stored on the server when submitted via HTTP API.

If someone calls HTTP API directly, then yes. Our low-level API client excludes repos unconditionally for compatibility with old servers.

@un-def
un-def merged commit 2a5b06e into master Aug 25, 2025
@un-def
un-def deleted the issue_2851_configuration_repos branch August 25, 2025 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants