bundler
Bundler failing to resolve - a missing gem, or a version conflict it prints the tree for.
rubydepstoolmatcher
Install: ci-doctor matchers add official/bundler
matchers/ruby/bundler/matcher.yaml
id: bundlerrole: toolclassification: [ruby, deps]description: Bundler failing to resolve - a missing gem, or a version conflict it prints the tree for.pattern: Could not find gem|Bundler::(GemNotFound|VersionConflict)before: 1after: 6
In bundles
Fixtures
Framing stripped per provider. Highlighted lines are what this matcher selects; the marked line is the anchor.
bundler_missing_gemOpen in playground
1Current runner version: '2.336.0'
2##[group]Operating System
3Ubuntu
424.04.4
5LTS
6##[endgroup]
7Secret source: Actions
8Prepare workflow directory
9Prepare all required actions
10Complete job name: bundler_missing_gem
11##[group]Set up job
12Image: ubuntu-24.04
13Runner name: 'GitHub Actions 12'
14##[endgroup]
15Download action repository 'actions/checkout@v4'
16Download action repository 'actions/cache@v4'
17##[group]Run actions/checkout@v4
18 with:
19 fetch-depth: 20
20 lfs: false
21##[endgroup]
22Syncing repository: acme/ledger
23##[group]Getting Git version info
24Working directory is '/home/runner/work/ledger/ledger'
25##[endgroup]
26/usr/bin/git checkout --progress --force 8ad41f02
27##[group]Run actions/cache@v4
28 with:
29 path: ~/.cache
30 key: Linux-deps-8ad41f02
31##[endgroup]
32Cache not found for input keys: Linux-deps-8ad41f02
33##[warning]file does not exist
34##[group]Run bundle install --jobs 4 --retry 3
35bundle install --jobs 4 --retry 3
36shell: /usr/bin/bash -e {0}
37##[endgroup]
38Fetching gem metadata from https://rubygems.org/.........
39Fetching gem metadata from https://rubygems.org/.
40Resolving dependencies...
41Could not find gem 'sidekiq-pro (~> 7.2)' in rubygems repository https://rubygems.org/ or installed locally.
42
43The source contains the following gems matching 'sidekiq-pro':
44 * sidekiq-pro-5.5.1
45 * sidekiq-pro-6.0.2
46Run `bundle install` to install missing gems.
47##[error]Process completed with exit code 7.
48##[group]Post Run actions/checkout@v4
49##[endgroup]
50/usr/bin/git version
51git version 2.54.0
52##[group]Post Run actions/upload-artifact@v4
53##[endgroup]
54Artifact upload complete.
55##[warning]vendor/bundle/: no matching files. Ensure that the artifact path is relative to the working directory
56Post job cleanup.
57Cleaning up orphan processes
1Running with gitlab-runner 16.9.1 (d773c4a1)
2 on ruby-runner-04 Rb3Mn8Kw, system ID: s_44dd55ee66ff
3Preparing the "docker" executor
4 Using Docker executor with image ruby:3.3-slim ...
5Using Docker executor with image ruby:3.3-slim ...
6Using docker image sha256:9a8b7c6d5e4f for ruby:3.3-slim with digest ruby@sha256:2b1c...
7Preparing environment
8Running on runner-rb3mn8kw-project-29-concurrent-3...
9Fetching changes with git depth set to 50...
10Checking out 12cc9be5 as detached HEAD...
11Checking cache for bundler-3.3-default...
12WARNING: file does not exist
13Failed to extract cache
14$ bundle install --jobs 4 --retry 3
15Fetching gem metadata from https://rubygems.org/.........
16Fetching gem metadata from https://rubygems.org/.
17Resolving dependencies...
18Could not find gem 'sidekiq-pro (~> 7.2)' in rubygems repository https://rubygems.org/ or installed locally.
19
20The source contains the following gems matching 'sidekiq-pro':
21 * sidekiq-pro-5.5.1
22 * sidekiq-pro-6.0.2
23Run `bundle install` to install missing gems.
24Running after_script
25$ echo "bundle install failed"
26bundle install failed
27Uploading artifacts for failed job
28WARNING: vendor/bundle/: no matching files. Ensure that the artifact path is relative to the working directory
29ERROR: Job failed: exit code 7