Skip to content

Read metadata of installed packages lazily#1273

Open
lionel- wants to merge 1 commit into
oak/salsa-29-optional-contentsfrom
oak/salsa-30-lazy-package-metadata
Open

Read metadata of installed packages lazily#1273
lionel- wants to merge 1 commit into
oak/salsa-29-optional-contentsfrom
oak/salsa-30-lazy-package-metadata

Conversation

@lionel-

@lionel- lionel- commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Branched from #1271
Progress towards #1212
Closes #1265

Uses same approach as file contents in #1271 to read NAMESPACE and DESCRIPTION lazily. This way the only thing that we need to initialise a library of installed packages are the folder names and the presence of a DESCRIPTION file. Unlike workspace packages, we don't read the Package field and just assume that a folder with a description file is indeed a package named after the folder name.

This avoids I/O and parsing costs for installed packages that are not imported or mentioned in the workspace files.

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