Skip to content

Pin gems in bundler.d to keep tests passing#1040

Merged
maxkadel merged 1 commit into
mainfrom
use_bundler_d_for_ci
Jun 11, 2026
Merged

Pin gems in bundler.d to keep tests passing#1040
maxkadel merged 1 commit into
mainfrom
use_bundler_d_for_ci

Conversation

@maxkadel

@maxkadel maxkadel commented Jun 8, 2026

Copy link
Copy Markdown
Member

CI was failing because the parent project does not have a Gemfile.lock, so for the local tests it was resolving newer versions of gems which were breaking. This pins them to working versions.

Comment thread bundler.d/ci_gem_pins.rb
@@ -0,0 +1,10 @@
# frozen_string_literal: true

# Pin gems that resolve to incompatible versions when bundled from the project

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I have a question about this approach. The comment mentions that these overrides are needed because the project root doesn't have a Gemfile.lock, which allows incompatible gem versions to be resolved. If that's the root cause, shouldn't we generate the image, commit the resulting Gemfile.lock, and rely on the locked dependency versions instead of introducing these temporary gem overrides? I'm wondering if that would provide a more deterministic and maintainable solution than pinning specific gems in code.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

That's what I thought as well at first, but the pattern across knapsacks is to gitignore the Gemfile.lock - it looks like committing it can cause problems with the Hyku submodule.

See, for example, this commit. See also this thread in the hykuup-everything Notch8 channel

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

That's right, I keep forgetting that about the knapsacks.

@maxkadel maxkadel merged commit 54560a0 into main Jun 11, 2026
6 checks passed
@maxkadel maxkadel deleted the use_bundler_d_for_ci branch June 11, 2026 15:19
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