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

Fix bootsnap setup in environments without bundler #489

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

casperisfine
Copy link
Contributor

Fix: #488

ExplicitRequire.with_gems assumed the provided gems were activated which is only true if bundler/setup was required.

If bootsnap is used without bundler, then we need to explictly activate the gem before mutating the $LOAD_PATH, otherwise the paths appended during gems activation will be lost once we exit with_gems.

FYI: @fxn

Fix: #488

`ExplicitRequire.with_gems` assumed the provided gems were activated
which is only true if `bundler/setup` was required.

If bootsnap is used without bundler, then we need to explictly
activate the gem before mutating the `$LOAD_PATH`, otherwise
the paths appended during gems activation will be lost once we
exit `with_gems`.
@casperisfine casperisfine merged commit 407bdef into main Jul 17, 2024
16 checks passed
@casperisfine casperisfine deleted the fix-load-error branch July 17, 2024 08:46
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.

bootsnap/setup cannot load msgpack
2 participants