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

Update the "Locking and syncing" page #11647

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Update the "Locking and syncing" page #11647

wants to merge 1 commit into from

Conversation

zanieb
Copy link
Member

@zanieb zanieb commented Feb 19, 2025

I need to self-review this still.

Updates the "Locking and syncing" page to actually have content on syncing — which was the original intent, the rest of this file was just copied out of the "Projects" page when I split it into multiple pages.

@zanieb zanieb added the documentation Improvements or additions to documentation label Feb 19, 2025
@zanieb
Copy link
Member Author

zanieb commented Feb 19, 2025

cc @edmorley if you're interested — I'd be curious to hear if this covers what you're looking for.

@zanieb
Copy link
Member Author

zanieb commented Feb 20, 2025

@charliermarsh I won't get to this before Monday. Feel free to review if you'd like.

Copy link
Contributor

@edmorley edmorley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc @edmorley if you're interested — I'd be curious to hear if this covers what you're looking for.

Sorry for the delayed reply - never enough hours in the day!

The additions/changes here are excellent - they cover the things I had in mind and more, whilst still remaining clear and concise. Much better than anything I could have worded - thank you! 😄

To assert the lockfile matches the project metadata, use the `--locked` flag. If the lockfile is not
up-to-date, an error will be raised instead of updating the lockfile.
When considering if the lockfile is up-to-date, uv will check if it matches the project metadata.
For example, if add a dependency to your `pyproject.toml`, the `uv.lock` will be outdated.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
For example, if add a dependency to your `pyproject.toml`, the `uv.lock` will be outdated.
For example, if you add a dependency to your `pyproject.toml`, the `uv.lock` will be outdated.


You can also check if the lockfile is up-to-date by passing the `--check` flag to `uv lock`:
uv will not consider lockfiles outdated when new versions of packages are released — the lockfile
needs to be explicitly updated to
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(dangling sentence; but presuming due to this being a draft)


!!! note

If the project is not define a build system, it will not be installed.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
If the project is not define a build system, it will not be installed.
If the project does not define a build system, it will not be installed.


## Exporting the lockfile

If you need to integrate uv with other tools or workflows, you can export `uv.lock` to
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(though the existing wording possibly also correct?)

Suggested change
If you need to integrate uv with other tools or workflows, you can export `uv.lock` to
If you need to integrate uv with other tools or workflows, you can export `uv.lock` to the

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants