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

exclude lockfile packages from hydration #533

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

zkamvar
Copy link
Contributor

@zkamvar zkamvar commented Oct 24, 2023

This addresses a bug where a GitHub package would fail to be provisioned even if it is recorded in the lockfile.
(see #221 (comment))

NOTE: I am trying a patch release here directly from the 0.14.0 tag.

@zkamvar
Copy link
Contributor Author

zkamvar commented Oct 25, 2023

Interestingly enough, this has solved a long frustration that I've had where hydration would over-saturate and install packages that were already in the lockfile. The restore takes care of that step, even if the user does not have the packages locally.

The result of this is a really big speedup for rebuilding lessons that are out of date with packages as in the case of the bioc-rnaseq:

time for sandpaper 0.14.1: 1m 15s
time for sandpaper 0.14.0: 7m 50s

The downside is that I'm finding that lessons with no cache are building the packages from source (possibly because the binaries are only the up-to-date ones), such as librarycarpentry/lc-r taking 29m to build

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

Successfully merging this pull request may close these issues.

1 participant