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 fails to install setup-cfg-fmt hook #119

Closed
zaro0508 opened this issue Feb 28, 2022 · 1 comment
Closed

pre-commit fails to install setup-cfg-fmt hook #119

zaro0508 opened this issue Feb 28, 2022 · 1 comment

Comments

@zaro0508
Copy link

This hooks is not working for me. It looks like pre-commit fails to build/install dependencies of this hook. I get the following error

          gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -DTHREAD_STACK_SIZE=0x100000 -fPIC -I. -I/home/circleci/.cache/pre-commit/repok21wtj75/py_env-python3/include -I/usr/include/python3.8 -c _ukkonen.cpp -o build/temp.linux-x86_64-3.8/_ukkonen.o
          _ukkonen.cpp:4:23: error: 'int64_t' does not name a type
              4 | template <typename T> int64_t edit_distance_k_impl(
                |                       ^~~~~~~
          _ukkonen.cpp:99:12: error: 'int64_t' does not name a type
             99 | extern "C" int64_t edit_distance_k(
                |            ^~~~~~~
          error: command '/usr/bin/gcc' failed with exit code 1

I'm building running it from within my docker container which is located at https://github.com/Sceptre/sceptre-circleci/blob/v0.8.0/Dockerfile

Here is the environment:

~/sceptrelint $ cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.13.5
PRETTY_NAME="Alpine Linux v3.13"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://bugs.alpinelinux.org/"

~/sceptrelint $ uname -a
Linux b802316d64f6 5.10.47-linuxkit #1 SMP Sat Jul 3 21:51:47 UTC 2021 x86_64 Linux

~/sceptrelint $ python -V
Python 3.8.9

(test1) ~/sceptrelint $ pip freeze
attrs==21.4.0
cfgv==3.3.1
covdefaults==2.2.0
coverage==6.3.2
distlib==0.3.4
filelock==3.6.0
identify==2.4.11
iniconfig==1.1.1
nodeenv==1.6.0
packaging==21.3
platformdirs==2.5.1
pluggy==1.0.0

pre-commit==2.17.0
py==1.11.0
pyparsing==3.0.7
pytest==7.0.1
PyYAML==6.0
six==1.16.0
toml==0.10.2
tomli==2.0.1
virtualenv==20.13.2


(test1) ~/sceptrelint $ cat .pre-commit-config.yaml
repos:
-   repo: https://github.com/asottile/setup-cfg-fmt
    rev: v1.20.0
    hooks:
    -   id: setup-cfg-fmt

pre-commit run log

@asottile
Copy link
Owner

please report it to the dependency, not here

zaro0508 added a commit to zaro0508/sceptrelint that referenced this issue Feb 28, 2022
Remove this pre-commit linter due to a dependency issue[1]
with the linter.

[1] asottile/setup-cfg-fmt#119
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants