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

Revert: Run Bundler v1 native helpers with explicit version #3222

Merged
merged 1 commit into from
Mar 3, 2021

Conversation

feelepxyz
Copy link
Contributor

This reverts #3196

We've run into some issues in production where bundle installs fail when fetching git dependencies as they try to write to a read-only file path:

There was an error while trying to write to`/var/lib/gems/2.6.0/cache/bundler/git`. It is likely that you need to grant write permissions for that path.

We're rolling this back to put core in good state while we figure out an approach that will allow us to run multiple bundler versions.

…pike"

This reverts commit a0dd603, reversing
changes made to c93e297.
@feelepxyz feelepxyz requested a review from a team as a code owner March 3, 2021 12:07
@feelepxyz feelepxyz requested a review from brrygrdn March 3, 2021 12:07
Copy link
Contributor

@brrygrdn brrygrdn left a comment

Choose a reason for hiding this comment

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

👍🏻

@feelepxyz feelepxyz merged commit 6137fd1 into main Mar 3, 2021
@feelepxyz feelepxyz deleted the feelepxyz/revert-pull-3196 branch March 3, 2021 12:12
feelepxyz added a commit that referenced this pull request Mar 5, 2021
This brings back this revert:
#3222

We've wrapped bundler native helpers in `Bundler.with_original_env` to
use the env before bundler was initialised in core.

This removed the need to manually unset env vars like `GEM_HOME` and
`GEM_PATH` which caused bundler to default git install to
`/var/lib/gems/2.6.0/cache/bundler/git` when run in the parent
container, where it doesn't have write permission.

With this change the the bundle cache is written to the native helper
folder/.bundle.

Co-authored-by: Barry Gordon <brrygrdn@github.com>
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.

2 participants