Skip to content

Fix Rakefile for Edge Rails#793

Merged
lcreid merged 1 commit intobootstrap-ruby:mainfrom
lcreid:yet-another-fix-to-rakefile
Apr 22, 2026
Merged

Fix Rakefile for Edge Rails#793
lcreid merged 1 commit intobootstrap-ruby:mainfrom
lcreid:yet-another-fix-to-rakefile

Conversation

@lcreid
Copy link
Copy Markdown
Contributor

@lcreid lcreid commented Apr 22, 2026

Yes, use bundle exec inside Rakefile.

I think we have to run bundle exec rake... here. But that doesn't mean we have to run bundle exec rake... when we're just running commands in the shell. I believe this is because rake will load some gems based on the Gemfile.lock in the current directory, and the tests, depending on the Rails version, may need to load conflicting versions of the gems. When you run a single test in the shell, it hasn't had the intermediate rake task to load gems, so the problem doesn't arise there.

@lcreid lcreid self-assigned this Apr 22, 2026
@lcreid lcreid merged commit 5d5d9cb into bootstrap-ruby:main Apr 22, 2026
11 checks passed
@lcreid lcreid deleted the yet-another-fix-to-rakefile branch April 22, 2026 21:17
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.

1 participant