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

Incorect warning about "The project is currently out-of-sync" when lockfile not stored at the root #1520

Open
OndrejMottl opened this issue Jul 3, 2023 · 4 comments
Labels
bug an unexpected problem or unintended behavior status 🔮
Milestone

Comments

@OndrejMottl
Copy link

Problem description

When the lockfile is not stored in the root of the project (for example in a folder with an additional project setting), the {renv} will incorrectly state that the project is out of sync:

* Project 'XXX' loaded. [renv 0.17.3]
* The project is currently out-of-sync.
* Use `renv::status()` for more details.

That is not the case because if I run :

renv::restore(lockfile = here::here("PATH_TO_MY_SETTINGS/library_list.lock"))

I get:

* The library is already synchronized with the lockfile.

Details

OS: Windows 11 Pro
{renv} version: 0.17.3

@kevinushey
Copy link
Collaborator

kevinushey commented Jul 6, 2023

Do you see this issue with the development version of renv? Can you share the contents of your lockfile?

@OndrejMottl
Copy link
Author

Yes, the issue is the same even for the development version.

Here is an example of my library_list.lock (have to manually change it to library_list.txt so that GH allow to upload it).
library_list

@OndrejMottl
Copy link
Author

@kevinushey any progress on this? I have updated to version 1.0.7 and the problem still persists.

@kevinushey
Copy link
Collaborator

kevinushey commented Apr 17, 2024

Thanks -- sorry, I haven't had the time to investigate yet. I'll put this issue in the 1.1.0 milestone for further investigation.

@kevinushey kevinushey added bug an unexpected problem or unintended behavior status 🔮 labels Apr 17, 2024
@kevinushey kevinushey added this to the 1.1.0 milestone Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior status 🔮
Projects
None yet
Development

No branches or pull requests

2 participants