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

Make LockfileParser usable with just a lockfile #6694

Merged
merged 1 commit into from
Jun 5, 2023

Conversation

deivid-rodriguez
Copy link
Member

@deivid-rodriguez deivid-rodriguez commented May 24, 2023

What was the end-user or developer problem that led to this PR?

I had this commit on an old WIP branch, and I think it may resolve #6671.

What is your fix for the problem, implemented in this PR?

Cache accessing in LockfileParser is the only part that needs "root folder resolution" to figure out the folder for the cache, but it's only needed for some things, so run that logic lazily when needed.

Make sure the following tasks are checked

@deivid-rodriguez deivid-rodriguez marked this pull request as ready for review May 24, 2023 18:26
@deivid-rodriguez deivid-rodriguez changed the title Delay cache access in LockfileParser Make LockfileParser usable with just a lockfile May 25, 2023
Copy link
Member

@duckinator duckinator left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. Feel free to merge it if you're done working on it. 👍

It's the only part that needs "root folder resultion" to figure out the
folder for the cache, but it's only needed for some things, so run that
logic lazily when needed.
@deivid-rodriguez deivid-rodriguez merged commit fcad49a into master Jun 5, 2023
92 checks passed
@deivid-rodriguez deivid-rodriguez deleted the delay-cache-access branch June 5, 2023 17:46
deivid-rodriguez added a commit that referenced this pull request Jun 8, 2023
Make `LockfileParser` usable with just a lockfile

(cherry picked from commit fcad49a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: Pass options to ::Bundler::LockfileParser::initialize that include setting the Gemfile path.
2 participants