Skip to content

Resolve inherited gem configs from Bundler - #468

Open
efegokdemir wants to merge 1 commit into
Shopify:mainfrom
efegokdemir:codex/erb-lint-440-inherit-git-gems
Open

efegokdemir wants to merge 1 commit into
Shopify:mainfrom
efegokdemir:codex/erb-lint-440-inherit-git-gems

Conversation

@efegokdemir

@efegokdemir efegokdemir commented Oct 3, 2026 •

Copy link
Copy Markdown

Fixes #440

When an inherited gem is sourced from Git, RubyGems lookup can fail even though Bundler has resolved the gem. Fall back to Bundler’s resolved specs so inherit_gem can locate the config while preserving existing RubyGems lookup behavior.

Adds a regression test that loads an inherited config from the Bundler-resolved gem path.

Tests:

  • bundle exec rspec (529 examples, 0 failures, 1 existing pending; run with a temporary Ruby 4.0-compatible dependency resolution because the locked Minitest 5.25.4 does not support the available Ruby 4.0. The repository lockfile is unchanged.)
  • bundle exec rubocop lib/erb_lint/runner_config_resolver.rb spec/erb_lint/runner_config_spec.rb (clean)
  • git diff --check

This branch has not been deployed

No deployments
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.

inherit_gem fails when gem is installed from git source

1 participant