Closed kengz closed 6 days ago
Works after dstack init
.
But for a git repo - a new branch still needs to be pushed to remote for it to work.
➜ dstack run . -f .dstack/train.dstack.yml
Traceback (most recent call last):
File "/Users/keng/projects/lean-dl-example/.venv/bin/dstack", line 8, in <module>
sys.exit(main())
^^^^^^
File "/Users/keng/projects/lean-dl-example/.venv/lib/python3.11/site-packages/dstack/_internal/cli/main.py", line 64, in main
args.func(args)
File "/Users/keng/projects/lean-dl-example/.venv/lib/python3.11/site-packages/dstack/_internal/cli/commands/run.py", line 94, in _command
repo = self.api.repos.load(Path.cwd())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/keng/projects/lean-dl-example/.venv/lib/python3.11/site-packages/dstack/api/_public/repos.py", line 114, in load
repo = load_repo(repo_config)
^^^^^^^^^^^^^^^^^^^^^^
File "/Users/keng/projects/lean-dl-example/.venv/lib/python3.11/site-packages/dstack/_internal/core/services/repos.py", line 134, in load_repo
return RemoteRepo(repo_id=config.repo_id, local_repo_dir=config.path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/keng/projects/lean-dl-example/.venv/lib/python3.11/site-packages/dstack/_internal/core/models/repos/remote.py", line 99, in __init__
raise RepoError("No remote branch is configured")
dstack._internal.core.models.repos.remote.RepoError: No remote branch is configured
Suggestion: If it's a Git repo but there is no tracking remote branch, show a warning but treat it as a local repo.
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
This issue is stale because it has been open for 30 days with no activity.
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale. Please reopen the issue if it is still relevant.
dstack version
0.13.0
Python version
3.11.0
Host OS
MacOS 13.1
Host Arch
ARM
What happened?
Full repro instruction to obtain error "The repo is not initialized..."
CLI logs
No response
Server logs
No response
Runner logs
No response
Additional Information
No response