pre-commit-hooks icon indicating copy to clipboard operation
pre-commit-hooks copied to clipboard

Install fails with ruby 3.0

Open rbubley opened this issue 4 years ago • 2 comments

(Pointing instead to Ruby 2.7 works fine)

$ pre-commit run --all-files
[INFO] Installing environment for https://github.com/jumanjihouse/pre-commit-hooks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: CalledProcessError: command: ('/opt/local/bin/ruby3.0', '/opt/local/bin/gem', 'install', '--no-document', '--no-format-executable', 'fake_gem__-0.0.0.gem')
return code: 1
expected return code: 0
stdout: (none)
stderr:
    ERROR:  While executing gem ... (Gem::DependencyResolutionError)
        conflicting dependencies rubocop (>= 0.68.1) and rubocop (= 1.10.0)
      Activated rubocop-1.10.0
      which does not match conflicting dependency (>= 0.68.1)
    
      Conflicting dependency chains:
        fake_gem__ (= 0.0.0), 0.0.0 activated, depends on
        rubocop (= 1.10.0), 1.10.0 activated
    
      versus:
        fake_gem__ (= 0.0.0), 0.0.0 activated, depends on
        rubocop-rspec (= 1.40.0), 1.40.0 activated, depends on
        rubocop (>= 0.68.1)

rbubley avatar May 18 '21 09:05 rbubley

Is there any update on this?

krish7919 avatar Feb 23 '22 03:02 krish7919

I can confirm version 3.0.0 works with ruby 3 and ubuntu 22.04 (docker image)

oNaiPs avatar Sep 19 '22 10:09 oNaiPs