Skip to content

Conversation

@professorhaseeb
Copy link
Contributor

@professorhaseeb professorhaseeb commented Nov 2, 2025

Description

Checklist:

  • I've made sure that tests are updated accordingly (especially if adding or updating a template option)
  • I've updated the documentation or confirm that my change doesn't require any updates

Rationale

uv source pages dont exist before copying the code

Added --no-sources option to uv sync command.
Add --no-sources option to uv sync command in Dockerfile.
@professorhaseeb
Copy link
Contributor Author

recreate

# uv add ./pkg
[tool.uv.workspace]
members = [
    "pkg",
]

[tool.uv.sources]
pkg = { workspace = true }
@browniebroke
Copy link
Member

browniebroke commented Nov 3, 2025

I'll need more context please. What is this solving? Why do we need this? Can you link to some relevant pices of documentation where I can learn more?

@professorhaseeb
Copy link
Contributor Author

professorhaseeb commented Nov 3, 2025

hi, i'm not sure if this is only my use case, but when a local package is used for development
uv add ./local-pkg

uv updates pyproject.toml's sources and workspaces.
when local docker compose is ran. it crashes,

--no-sources before copy runs it fine

https://docs.astral.sh/uv/concepts/projects/workspaces/#workspace-sources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants