question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not find valid gem __fake_gem

See original GitHub issue

I’m having trouble getting the hooks installed on OSX:

[INFO] Installing environment for https://github.com/chriskuehl/puppet-pre-commit-hooks.git.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: CalledProcessError: Command: (u'/bin/bash', u'/Users/ray.ward/.rbenv/shims/gem', 'install', '--no-ri', '--no-rdoc', '__fake_gem-0.gem')
Return code: 2
Expected return code: 0
Output: (none)
Errors:
    ERROR:  Could not find a valid gem '__fake_gem-0.gem' (>= 0) in any repository
    ERROR:  Possible alternatives: fake_gem, fake-gem, fake_gem_push


Check the log at ~/.pre-commit/pre-commit.log
$ ruby -v
ruby 2.1.6p336 (2015-04-13 revision 50298) [x86_64-darwin14.0]
$ gem -v
2.2.3
$ pre-commit -V
pre-commit 0.9.1
$ uname -a
Darwin SYD-MBP-WARD 15.6.0 Darwin Kernel Version 15.6.0: Mon Aug 29 20:21:34 PDT 2016; root:xnu-3248.60.11~1/RELEASE_X86_64 x86_64

any ideas?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:19 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
raywardcommented, Nov 7, 2016

I’m not sure why I have --remote in the gemrc…

I removed it and everything is working perfectly now! Woo!

0reactions
raywardcommented, Nov 8, 2016

No worries, thanks for all your help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Could not find a valid gem in any repository" (rubygame and ...
If your gem command is not current, you can update it like this: gem update --system. To see if you can connect to...
Read more >
Error: Could not find a valid gem 'rails' Unable to install rails
ERROR: Could not find a valid gem 'rails' (= 5.0.0), here is why: Unable to download data from https://rubygems.org/ - SSL_connect ...
Read more >
ruby-fakegem.eclass - Gentoo Development Guide
This eclass allows to install arbitrary Ruby libraries (including Gems), providing integration into the RubyGems system even for "regular" ...
Read more >
Fake Gem Decor Bikini Bottom -SHEIN
Shop Fake Gem Decor Bikini Bottom online. SHEIN offers Fake Gem Decor Bikini Bottom & more to fit your fashionable needs.
Read more >
How to Identify Gemstones (with Pictures) - wikiHow
1. Invest in a gemstone identification chart. If you think you'll be identifying gemstones often, it would be in your best interest to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found