Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

With rye {root:uri}/../../packages/ seems to traverse more than 2 folders up #4321

Open
ShravanSunder opened this issue Jun 14, 2024 · 3 comments
Labels
needs-mre Needs more information for reproduction

Comments

@ShravanSunder
Copy link

i'm trying to use rye sync with a python monorepo and root:uri

the resolution of folders doesn't seem to work. for example

    "askluna-dotenv @ {root:uri}/../../packages/dotenv" => error: Distribution not found at: file:///Users/shravansunder/Documents/dev/project-dev/askluna-project/packages/dotenv
error: could not write production lockfile for workspace

    "askluna-dotenv @ {root:uri}/../packages/dotenv" =>error: Distribution not found at: file:///Users/shravansunder/Documents/dev/project-dev/askluna-project/askluna/apps/packages/dotenv

So for some reason, ../../ seems to traverse by more than 2 folders up instead of exactly 2 folders. And ../ only traverses 1 folder up

@charliermarsh
Copy link
Member

Isn't {root:uri} a Hatch thing? What does it resolve to?

@charliermarsh
Copy link
Member

I don't know that uv has any control over how that URL gets resolved. I believe we just ask Hatch for the metadata, and it returns the resolved file path.

@ShravanSunder
Copy link
Author

i'll create a issue in their repo as well. pypa/hatch#1570

Related question @charliermarsh so with uv (and ruff) whats the recommended mechanism to point to a local package in a monorepo. I've searched all the issues and unable to find a solution that doesn't use absolute paths from user folder.

I can make a related discussion if that's better for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-mre Needs more information for reproduction
Projects
None yet
Development

No branches or pull requests

2 participants