Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pre-commit hooks fail with latest version of prettier #986

Closed
WeilerP opened this issue Jan 23, 2023 · 0 comments · Fixed by #987
Closed

Pre-commit hooks fail with latest version of prettier #986

WeilerP opened this issue Jan 23, 2023 · 0 comments · Fixed by #987
Assignees
Labels
bug Something isn't working

Comments

@WeilerP
Copy link
Member

WeilerP commented Jan 23, 2023

Using the latest version of prettier, the pre-commit hooks fail. See scverse/cookiecutter-scverse#143.

pre-commit run --all-files 
Error output
[INFO] Initializing environment for https://github.com/psf/black.
[INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier.
[INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier:[email protected].
[INFO] Initializing environment for https://github.com/asottile/blacken-docs.
[INFO] Initializing environment for https://github.com/PyCQA/isort.
[INFO] Initializing environment for https://github.com/asottile/yesqa.
[INFO] Initializing environment for https://github.com/asottile/yesqa:flake8-blind-except,flake8-bugbear,flake8-comprehensions,flake8-docstrings,flake8-rst-docstrings,flake8-tidy-imports.
[INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Initializing environment for https://github.com/PyCQA/autoflake.
[INFO] Initializing environment for https://github.com/PyCQA/flake8.
[INFO] Initializing environment for https://github.com/PyCQA/flake8:flake8-blind-except,flake8-bugbear,flake8-comprehensions,flake8-docstrings,flake8-rst-docstrings,flake8-tidy-imports.
[INFO] Initializing environment for https://github.com/asottile/pyupgrade.
[INFO] Installing environment for https://github.com/psf/black.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/pre-commit/mirrors-prettier.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: CalledProcessError: command: ('/.cache/pre-commit/repo8ca0hksv/node_env-default/bin/node', '/.cache/pre-commit/repo8ca0hksv/node_env-default/bin/npm', 'install', '--dev', '--prod', '--ignore-prepublish', '--no-progress', '--no-save')
return code: 1
stdout: (none)
stderr:
    /.cache/pre-commit/repo8ca0hksv/node_env-default/bin/node: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by /.cache/pre-commit/repo8ca0hksv/node_env-default/bin/node)
    /.cache/pre-commit/repo8ca0hksv/node_env-default/bin/node: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by /.cache/pre-commit/repo8ca0hksv/node_env-default/bin/node)
    /.cache/pre-commit/repo8ca0hksv/node_env-default/bin/node: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by /.cache/pre-commit/repo8ca0hksv/node_env-default/bin/node)
    /.cache/pre-commit/repo8ca0hksv/node_env-default/bin/node: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /.cache/pre-commit/repo8ca0hksv/node_env-default/bin/node)
    /.cache/pre-commit/repo8ca0hksv/node_env-default/bin/node: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /.cache/pre-commit/repo8ca0hksv/node_env-default/bin/node)
    /.cache/pre-commit/repo8ca0hksv/node_env-default/bin/node: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /.cache/pre-commit/repo8ca0hksv/node_env-default/bin/node)
@WeilerP WeilerP added the bug Something isn't working label Jan 23, 2023
@WeilerP WeilerP self-assigned this Jan 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant