Open krish7919 opened 2 years ago
I'm getting the same error on Ubuntu 22.04
$ pre-commit install --install-hooks
pre-commit installed at .git/hooks/pre-commit
[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: ('/usr/bin/ruby', '/usr/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.71.0) and rubocop (= 0.85.1)
Activated rubocop-0.85.1
which does not match conflicting dependency (>= 0.71.0)
Conflicting dependency chains:
fake_gem__ (= 0.0.0), 0.0.0 activated, depends on
rubocop (= 0.85.1), 0.85.1 activated
versus:
fake_gem__ (= 0.0.0), 0.0.0 activated, depends on
rubocop-performance (= 1.6.1), 1.6.1 activated, depends on
rubocop (>= 0.71.0)
$ pre-commit --version
pre-commit 2.17.0
I'm experiencing the same error. Seems to be related to #89. Are there any updates on this?
We were using Alpine 3.13 so far and upgrading to Alping 3.15 got in an upgrade of ruby to v3.0.3-r0, among other things.
I install ruby in my image:
And then install
pre-commit
with versionpre-commit==2.17.0
.However after all this,
pre-commit install
in my container fails with:The log file has:
I have tried downgrading
virtualenv
to20.0.33
(but I do not know how this is related), and there has been no change.Has anyone made pre-commit work with the latest Alpine 3.15 stable image?