Skip to content

Preserve uv source configuration - #13

Open
erikgaas wants to merge 1 commit into
mainfrom
agent/preserve-uv-sources
Open

Preserve uv source configuration#13
erikgaas wants to merge 1 commit into
mainfrom
agent/preserve-uv-sources

Conversation

@erikgaas

@erikgaas erikgaas commented Jul 20, 2026

Copy link
Copy Markdown

Summary

  • preserve existing [tool.uv.sources] values when workspace projects are synchronized or removed
  • serialize workspace, index, Git, path, marker, and list-valued source entries without converting them all to workspace = true
  • add regression coverage for index-backed PyTorch sources and mixed source types

Root cause

FastWS parsed the existing source table, but rebuilt every entry as { workspace = true }. Running ws-add could therefore turn an index-backed source such as torch = { index = "pytorch" } into a workspace source and break the next uv sync.

Impact

Newly discovered local projects still receive { workspace = true }, while external source configuration created manually or by uv add remains intact.

Validation

  • uv run --with pytest pytest fastws/tests -q — 26 passed
  • uv sync --dry-run in the workspace — no changes

@erikgaas erikgaas added the enhancement New feature or request label Jul 20, 2026
@erikgaas
erikgaas marked this pull request as ready for review July 20, 2026 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant