Describe the problem as clearly as you can
$ ruby -v
ruby 4.0.4 (2026-05-12 revision b89eb1bcbf) +PRISM [x86_64-linux]
$ gem -v
4.0.10
$ BUNDLE_ONLY=ci bundle install
Fetching https://github.com/rails/rails.git
Fetching gem metadata from https://rubygems.org/...........
Resolving dependencies...
Could not find compatible versions
Because every version of activerecord depends on activesupport = 8.2.0.alpha
and activesupport = 8.2.0.alpha could not be found in rubygems repository https://rubygems.org/ or installed locally,
activerecord cannot be used.
So, because Gemfile depends on activerecord >= 0,
version solving has failed.
$
Did you try upgrading rubygems & bundler?
Yes.
$ ruby -v
ruby 4.0.4 (2026-05-12 revision b89eb1bcbf) +PRISM [x86_64-linux]
$ gem -v
4.0.11
$ bundler -v
4.0.11
$ BUNDLE_ONLY=ci bundle install
Fetching https://github.com/rails/rails.git
Fetching gem metadata from https://rubygems.org/...........
Resolving dependencies...
Could not find compatible versions
Because every version of activerecord depends on activesupport = 8.2.0.alpha
and activesupport = 8.2.0.alpha could not be found in rubygems repository https://rubygems.org/ or installed locally,
activerecord cannot be used.
So, because Gemfile depends on activerecord >= 0,
version solving has failed.
$
Post steps to reproduce the problem
- Ruby is installed via mise (mise install ruby@4.0.4)
Which command did you run?
- Create Gemfile
source "https://rubygems.org"
gem "activerecord", git: "https://github.com/rails/rails.git", branch: "main"
group :ci do
gem "rubocop"
end
- BUNDLE_ONLY=ci bundle install
What were you expecting to happen?
It should install rubocop gem.
What happened instead?
$ BUNDLE_ONLY=ci bundle install
Fetching https://github.com/rails/rails.git
Fetching gem metadata from https://rubygems.org/...........
Resolving dependencies...
Could not find compatible versions
Because every version of activerecord depends on activesupport = 8.2.0.alpha
and activesupport = 8.2.0.alpha could not be found in rubygems repository https://rubygems.org/ or installed locally,
activerecord cannot be used.
So, because Gemfile depends on activerecord >= 0,
version solving has failed.
If not included with the output of your command, run bundle env and paste the output below
$ bundle env
Environment
Bundler 4.0.11
Platforms ruby, x86_64-linux
Ruby 4.0.4p0 (2026-05-12 revision b89eb1bcbfcd0cca47e07d5d105a9df21a5b5feb) [x86_64-linux]
Full Path /home/yahonda/.local/share/mise/installs/ruby/4.0.4/bin/ruby
Config Dir /home/yahonda/.local/share/mise/installs/ruby/4.0.4/etc
RubyGems 4.0.11
Gem Home /home/yahonda/.local/share/mise/installs/ruby/4.0.4/lib/ruby/gems/4.0.0
Gem Path /home/yahonda/.local/share/gem/ruby/4.0.0:/home/yahonda/.local/share/mise/installs/ruby/4.0.4/lib/ruby/gems/4.0.0
User Home /home/yahonda
User Path /home/yahonda/.local/share/gem/ruby/4.0.0
Bin Dir /home/yahonda/.local/share/mise/installs/ruby/4.0.4/bin
Tools
Git 2.54.0
RVM not installed
rbenv not installed
chruby not installed
Bundler Build Metadata
Timestamp 2026-05-12
Git SHA b7155a3865
Gemfile
Gemfile
source "https://rubygems.org"
gem "activerecord", git: "https://github.com/rails/rails.git", branch: "main"
group :ci do
gem "rubocop"
end
Gemfile.lock
<No /home/yahonda/Gemfile.lock found>
Describe the problem as clearly as you can
Did you try upgrading rubygems & bundler?
Yes.
Post steps to reproduce the problem
Which command did you run?
What were you expecting to happen?
It should install rubocop gem.
What happened instead?
If not included with the output of your command, run
bundle envand paste the output below$ bundle env
Environment
Bundler Build Metadata
Gemfile
Gemfile
Gemfile.lock