Skip to content

fix: support uv workspaces for deploy#119

Merged
pat-s merged 2 commits intomainfrom
feat/uv-workspace-support
Apr 8, 2026
Merged

fix: support uv workspaces for deploy#119
pat-s merged 2 commits intomainfrom
feat/uv-workspace-support

Conversation

@pat-s
Copy link
Copy Markdown
Member

@pat-s pat-s commented Apr 8, 2026

Summary

  • When uv.lock or .python-version aren't found in the deploy directory, search parent directories (uv workspace support)
  • Found files are injected at the bundle root so the server receives them as expected
  • ricochet init now shows a helpful message when uv.lock is found in a parent dir instead of a false "not found" warning

Closes the issue where deploying from a uv workspace member subdirectory fails because uv.lock lives at the workspace root.

Note: Also requires a server-side migration to add shiny-py to the database CHECK constraint (see ricochet-rs/ricochet).

….python-version

In uv workspace setups, `uv.lock` and `.python-version` live at the workspace root rather than in each member subdirectory.
The CLI now searches parent directories when these files aren't found locally, and injects them into the deploy bundle so the server receives them at the expected bundle root.
@pat-s pat-s requested a review from JosiahParry April 8, 2026 19:29
@pat-s pat-s changed the title feat: support uv workspaces for deploy fix: support uv workspaces for deploy Apr 8, 2026
Comment thread src/commands/deploy.rs Outdated
Comment thread src/utils.rs
return None;
}
}
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is interesting. I think there could be a usecase in contributing to walkdir this type of functionality because its the functional reverse of WalkDir

Co-authored-by: Josiah Parry <josiah.parry@gmail.com>
@pat-s pat-s enabled auto-merge (squash) April 8, 2026 19:54
@pat-s pat-s merged commit d85b190 into main Apr 8, 2026
2 checks passed
@pat-s pat-s deleted the feat/uv-workspace-support branch April 8, 2026 19:55
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