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

uv sync --locked --no-build --no-install-project fails. #9016

Closed
heckad opened this issue Nov 11, 2024 · 3 comments · Fixed by #9024
Closed

uv sync --locked --no-build --no-install-project fails. #9016

heckad opened this issue Nov 11, 2024 · 3 comments · Fixed by #9024
Assignees
Labels
bug Something isn't working

Comments

@heckad
Copy link

heckad commented Nov 11, 2024

If use uv sync --locked --no-build --no-install-project command that error will occurred

warning: Failed to validate existing lockfile: Distribution `project==0.0.0a0 @ editable+.` can't be installed because it is marked as `--no-build` but has no binary distribution
Resolved 29 packages in 17ms
error: The lockfile at `uv.lock` needs to be updated, but `--locked` was provided. To update the lockfile, run `uv lock`.

If remove --locked argument then all works fine, but the lock file doesn't change. It's strange that he wants to update the log file and doesn't do this. Also if remove --no-build but left --locked then everything goes well too.

uv 0.5.1

@charliermarsh charliermarsh added the bug Something isn't working label Nov 11, 2024
@charliermarsh
Copy link
Member

I guess I'd consider it a bug, sort of a strange interaction.

@charliermarsh charliermarsh self-assigned this Nov 11, 2024
@charliermarsh
Copy link
Member

Does uv sync --frozen --no-build --no-install-project work?

@heckad
Copy link
Author

heckad commented Nov 11, 2024

Yes, it does

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants