-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Ignore group completely when resolving depencencies. #11104
Comments
No, there's no way to exclude a group from the resolution at this time. If you did, it wouldn't be installable. What's the use-case for not having access to the index? |
That is ok if it is not installable. If the index is a private repository and the app can only be installed when there is access to that repository, hence if you only need that library for some parts of the code you would have to install them manually when required. The app could partially work without those libraries when it does not have access but is not able to resolve the deps hence renders the uv unusable and needs manual installation of the libraries. |
How would you install these? Why include them in Why not generate the lockfile with access to the private index? You can still do partial installs later without access to the index. |
Same as #10201. I'm thinking of two possible solutions for this (if we want to support such situations...): First, similar to #11064 but, instead, destruct Second, it could lazy solving dependency for specified indexes: [tool.uv.sources]
my-app-1 = { index = "internalRepo"}
[[tool.uv.index]]
name = "internalRepo"
url = "https://my-internal-repo.com/simple"
explicit = true
lazy = true I don't know how much this is possible, via this option, dependencies with lazy indexes are not resolved in lockfile but when actually requested for install (e.g. |
Well image that you have private machines and public machines, you dont want to be maintaining multiple lockfiles. |
I don't understand why you'd need multiple lockfiles. You'd lock on the private machine and it'd be usable everywhere? |
Summary
If we have a
project.toml
like:If in the moment we are solving dependencies there is access to the private repositories it will fail and there is no way to exclude the
internal
group.So the following command will fail
uv sync --no-group internal
. And there is no known way to completely exclude theinternal
group from dep resolution.Example
No response
The text was updated successfully, but these errors were encountered: