You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"Could not find gem '...' in locally installed gems" Upon Running Overcommit #798
❯ sudo gem install --no-user-install cadence-ruby -v 0.1.15
Password:
Fetching thrift-0.17.0.gem
Fetching oj-3.13.23.gem
Fetching cadence-ruby-0.1.15.gem
Building native extensions. This could take a while...
GemWrappers: Can not wrap not executable file: codeowners
Successfully installed oj-3.13.23
Building native extensions. This could take a while...
GemWrappers: Can not wrap not executable file: codeowners
Successfully installed thrift-0.17.0
GemWrappers: Can not wrap not executable file: codeowners
Successfully installed cadence-ruby-0.1.15
Parsing documentation for oj-3.13.23
Installing ri documentation for oj-3.13.23
Parsing documentation for thrift-0.17.0
Installing ri documentation for thrift-0.17.0
Parsing documentation for cadence-ruby-0.1.15
Installing ri documentation for cadence-ruby-0.1.15
Done installing documentation for oj, thrift, cadence-ruby after 4 seconds
3 gems installed
❯ sudo gem install --no-user-install bundler
Fetching bundler-2.3.26.gem
GemWrappers: Can not wrap not executable file: codeowners
Successfully installed bundler-2.3.26
Parsing documentation for bundler-2.3.26
Installing ri documentation for bundler-2.3.26
Done installing documentation for bundler after 0 seconds
1 gem installed
❯ overcommit --run
Resolving dependencies.........
Could not find gem 'cadence-ruby' in locally installed gems
Run `bundle install` to install missing gems.
The issue I'm facing here is that I use rbenv to manage two Ruby versions locally: 2.6.10 and 2.7.8. When I use version 2.7.8, I encounter the problem described above. My final solution was to delete the contents of /Library/Ruby. I noticed that this directory contains Ruby gems for version 2.6, which might have caused caching conflicts.
Activity
alfuken commentedon Nov 17, 2022
not really a fix but a clutch: try installing both gems into MacOS default system ruby
jeffsaremi commentedon Nov 17, 2022
Thanks Bodhan! I will try this and get back to you
jeffsaremi commentedon Nov 17, 2022
I did this which still made no difference:
ZhaoSongGOO commentedon Mar 10, 2025
The issue I'm facing here is that I use rbenv to manage two Ruby versions locally: 2.6.10 and 2.7.8. When I use version 2.7.8, I encounter the problem described above. My final solution was to delete the contents of /Library/Ruby. I noticed that this directory contains Ruby gems for version 2.6, which might have caused caching conflicts.