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

Clarify how rye lock and rye sync work with already existing lock files #1371

Open
jeertmans opened this issue Sep 6, 2024 · 0 comments
Open

Comments

@jeertmans
Copy link

Hello,

First, thank you for this great project!

I think the way lock files and synchronization are performed could be clarified, especially regarding the existence of previous lock files.

Indeed, I recently discovered the hard way that rync sync would actually use the option from a previous lock, if a lock file exists of course.

That means that:

rye sync --all-features
rye sync

Is the same as:

rye sync --all-features
rye sync --all-features

While this can be convenient, this does not seem to be documented neither in the help command nor in the online guide.

At first, coming from the Rust language, I was expecting that rye sync would always only select the default features. But here, it looks like rye sync --reset is needed here to achieve the desired outcome.

So I think it would be great to add some documentation about that specific behavior of Rye.

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

No branches or pull requests

1 participant