"Could not find gem '...' in locally installed gems" Upon Running Overcommit
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
The failure comes from Bundler resolving the Gemfile when git hooks run, so start with the Gemfile and the code that invokes Bundler during hook execution. Reproduce it by running an overcommit command without bundle exec in an environment where bundle info cadence-ruby finds the gem, then compare against the bundle exec run that works. Done means the hook runs from a plain git commit without the 'Could not find gem' error, which is hard to confirm without the reporter's Ruby 2.7 and RVM setup.
索引モデルが issue の本文から書いたものです。
説明
None of overcommit commands run. They all produce this error:
Resolving dependencies........
Could not find gem 'cadence-ruby' in locally installed gems
Run `bundle install` to install missing gems.
However:
❯ bundle info cadence-ruby
* cadence-ruby (0.1.15)
Summary: Cadence Ruby client
Homepage: https://github.com/coinbase/cadence-ruby
Path: /Users/jeffsaremi/.rvm/gems/ruby-2.7.6/gems/cadence-ruby-0.1.15
Manually installing gem install cadence-ruby -v 0.1.15 does not help
However running overcommit commands (eg overcommit --run) with a bundle exec works. eg:
bundle exec overcommit --run
But still none of the git hooks run :
❯ git commit -am "removing dummy changes"
Problem loading 'Gemfile': Could not find gem 'cadence-ruby' in locally installed gems
Try running:
bundle install --gemfile=Gemfile
❯ bundle version
Bundler version 2.2.20 (2021-06-11 commit 4c510a34a4)
❯ ruby -v
ruby 2.7.6p219 (2022-04-12 revision c9c2245c0a) [x86_64-darwin21]
- 主要言語
- Ruby
- スター
- 4k
- フォーク
- 288
- 平均マージ
- 2日 4時間
- マージ済み PR(30日)
- 18
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
sds/overcommit のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
sds/overcommit#909 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
sds/overcommit#847 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 半日 初心者へのやさしさ 62/100
sds/overcommit#908 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
sds/overcommit#875 ·
メンテナーはふだん 1 日以内に返信
-
help wanted
難易度 4/5 3〜5日 初心者へのやさしさ 18/100
sds/overcommit#869 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
seek4science/seek#2784 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
yosiat/panko_serializer#243 ·
-
enhancement priority: medium risk: low v1.9.0
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
davidteren/mutineer#379 ·
メンテナーはふだん 2 日以内に返信
-
Translation tutorial: snippet crashes on chunks export and misses simple { t } entries対応中かも @Mahdi-Hasan が今日担当しました。 オープンresource-documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
TarteelAI/quranic-universal-library#1020 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100