Created
May 21, 2020 16:16
-
-
Save alvarmaciel/2e9133265bb54d26ea33fc4d74487ec3 to your computer and use it in GitHub Desktop.
errores de pre-commit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- repo: https://github.com/humitos/powrap | |
rev: pre-commit | |
hooks: | |
- id: powrap | |
# This one requires package ``hunspell-es_es`` in Archlinux | |
- repo: https://github.com/humitos/pospell | |
rev: pre-commit | |
hooks: | |
- id: pospell | |
args: ['--personal-dict', 'dict', '--modified', '--language', 'es_ES', '--language', 'es_AR'] | |
- repo: https://github.com/pre-commit/pre-commit-hooks | |
rev: v2.5.0 | |
hooks: | |
- id: file-contents-sorter | |
files: dict |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### version information | |
``` | |
pre-commit version: 2.4.0 | |
sys.version: | |
3.8.2 (default, Apr 8 2020, 14:31:25) | |
[GCC 9.3.0] | |
sys.executable: /usr/bin/python | |
os.name: posix | |
sys.platform: linux | |
``` | |
### error information | |
``` | |
An unexpected error has occurred: CalledProcessError: command: ('/usr/lib/git-core/git', 'checkout', 'pre-commit') | |
return code: 1 | |
expected return code: 0 | |
stdout: (none) | |
stderr: | |
error: ruta especificada 'pre-commit' no concordó con ningún archivo(s) conocido por git | |
``` | |
``` | |
Traceback (most recent call last): | |
File "/home/alvar/.local/lib/python3.8/site-packages/pre_commit/store.py", line 179, in clone_strategy | |
self._shallow_clone(ref, _git_cmd) | |
File "/home/alvar/.local/lib/python3.8/site-packages/pre_commit/store.py", line 161, in _shallow_clone | |
git_cmd('-c', git_config, 'fetch', 'origin', ref, '--depth=1') | |
File "/home/alvar/.local/lib/python3.8/site-packages/pre_commit/store.py", line 176, in _git_cmd | |
cmd_output_b('git', *args, cwd=directory, env=env) | |
File "/home/alvar/.local/lib/python3.8/site-packages/pre_commit/util.py", line 157, in cmd_output_b | |
raise CalledProcessError(returncode, cmd, retcode, stdout_b, stderr_b) | |
pre_commit.util.CalledProcessError: command: ('/usr/lib/git-core/git', '-c', 'protocol.version=2', 'fetch', 'origin', 'pre-commit', '--depth=1') | |
return code: 128 | |
expected return code: 0 | |
stdout: (none) | |
stderr: | |
fatal: no se puedo encontrar ref remota pre-commit | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/home/alvar/.local/lib/python3.8/site-packages/pre_commit/error_handler.py", line 56, in error_handler | |
yield | |
File "/home/alvar/.local/lib/python3.8/site-packages/pre_commit/main.py", line 365, in main | |
return hook_impl( | |
File "/home/alvar/.local/lib/python3.8/site-packages/pre_commit/commands/hook_impl.py", line 217, in hook_impl | |
return retv | run(config, store, ns) | |
File "/home/alvar/.local/lib/python3.8/site-packages/pre_commit/commands/run.py", line 357, in run | |
for hook in all_hooks(config, store) | |
File "/home/alvar/.local/lib/python3.8/site-packages/pre_commit/repository.py", line 204, in all_hooks | |
return tuple( | |
File "/home/alvar/.local/lib/python3.8/site-packages/pre_commit/repository.py", line 207, in <genexpr> | |
for hook in _repository_hooks(repo, store, root_config) | |
File "/home/alvar/.local/lib/python3.8/site-packages/pre_commit/repository.py", line 182, in _repository_hooks | |
return _cloned_repository_hooks(repo_config, store, root_config) | |
File "/home/alvar/.local/lib/python3.8/site-packages/pre_commit/repository.py", line 148, in _cloned_repository_hooks | |
manifest_path = os.path.join(store.clone(repo, rev), C.MANIFEST_FILE) | |
File "/home/alvar/.local/lib/python3.8/site-packages/pre_commit/store.py", line 183, in clone | |
return self._new_repo(repo, ref, deps, clone_strategy) | |
File "/home/alvar/.local/lib/python3.8/site-packages/pre_commit/store.py", line 140, in _new_repo | |
make_strategy(directory) | |
File "/home/alvar/.local/lib/python3.8/site-packages/pre_commit/store.py", line 181, in clone_strategy | |
self._complete_clone(ref, _git_cmd) | |
File "/home/alvar/.local/lib/python3.8/site-packages/pre_commit/store.py", line 154, in _complete_clone | |
git_cmd('checkout', ref) | |
File "/home/alvar/.local/lib/python3.8/site-packages/pre_commit/store.py", line 176, in _git_cmd | |
cmd_output_b('git', *args, cwd=directory, env=env) | |
File "/home/alvar/.local/lib/python3.8/site-packages/pre_commit/util.py", line 157, in cmd_output_b | |
raise CalledProcessError(returncode, cmd, retcode, stdout_b, stderr_b) | |
pre_commit.util.CalledProcessError: command: ('/usr/lib/git-core/git', 'checkout', 'pre-commit') | |
return code: 1 | |
expected return code: 0 | |
stdout: (none) | |
stderr: | |
error: ruta especificada 'pre-commit' no concordó con ningún archivo(s) conocido por git | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment