Skip to content

BundlerPinning.install_stable reinstalls an already-installed Bundler, racing parallel members #59

Closed

Description

@pboling

Observed in the parallel family release (kettle-family 1.3.41): members failed with LoadError for random files under bundler-4.0.24/lib/bundler. See kettle-dev/kettle-family#38.

BundlerPinning.install_stable (called from ensure_latest_stable when the executing Bundler lags the registry) runs Gem::DependencyInstaller#install, which rewrites an installed gem in place even when that exact version is already installed. With several members doing this at once, each rewrites bundler-X/ while others bundle exec against it.

Wanted: skip the install when the exact version is already installed, and serialize real installs across processes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions