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

renv 0.17.1 changed package hash #1168

Closed
hutch3232 opened this issue Mar 17, 2023 · 5 comments
Closed

renv 0.17.1 changed package hash #1168

hutch3232 opened this issue Mar 17, 2023 · 5 comments

Comments

@hutch3232
Copy link

I upgraded to 0.17.1 this morning and when I took a snapshot, it changed the hash for the vast majority of my packages. The new hash didn't align with the package path in my cache. This was pretty unexpected.

I tried it in two separate R environments (OS, R, RStudio and renv versions [0.16.0->0.17.1, 0.17.0->0.17.1]) and it occurred with both.

One package example was BH. It didn't happen to R6, but it did to Rcpp and many others.

@kevinushey
Copy link
Collaborator

Thanks for the bug report; this was an unintentional change. I'll fix this ASAP and get a patch onto CRAN.

This shouldn't effect the integrity of the cache, but you may have some duplicate cache entries. I'll put together a tool for cleaning those up soon after.

@kevinushey
Copy link
Collaborator

I have a fix in fad0808; I'll do some testing to confirm all looks well on my end but please let me know if you can confirm as well.

@hutch3232
Copy link
Author

Just tested on my end by backing up my renv.lock, upgrading to that new version, taking a new renv:: snapshot(), and then running it through diff. The only change was related to the renv package itself, as expected.

Thanks for fixing so quickly!

@kevinushey
Copy link
Collaborator

renv 0.17.2 is on its way to CRAN; hopefully to be accepted soon. Sorry for the rocky round of releases in 0.17.

@kevinushey
Copy link
Collaborator

renv 0.17.2 is now on CRAN!

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

2 participants