nix-community / vulnix

Vulnerability (CVE) scanner for Nix/NixOS.
BSD 3-Clause "New" or "Revised" License
464 stars 35 forks source link

NixPkgs: FLAKE8-check failure #65

Closed keidrych closed 4 years ago

keidrych commented 4 years ago
------------------------------ Captured log call -------------------------------
WARNING  flake8.options.manager:manager.py:211 option --max-complexity: please update from optparse string `type=` to argparse callable `type=` -- this will be an error in the future
=============================== warnings summary ===============================
/nix/store/71rs0sj3vm8gx7fv04ghi0xc55254ny1-python3.7-pytest-5.4.3/lib/python3.7/site-packages/_pytest/junitxml.py:417
  /nix/store/71rs0sj3vm8gx7fv04ghi0xc55254ny1-python3.7-pytest-5.4.3/lib/python3.7/site-packages/_pytest/junitxml.py:417: PytestDeprecationWarning: The 'junit_family' default value will change to 'xunit2' in pytest 6.0.
  Add 'junit_family=xunit1' to your pytest.ini file to keep the current format in future versions of pytest and silence this warning.
    _issue_warning_captured(deprecated.JUNIT_XML_DEFAULT_FAMILY, config.hook, 2)

-- Docs: https://docs.pytest.org/en/latest/warnings.html
-------------- generated xml file: /build/vulnix-1.9.4/report.xml --------------

----------- coverage: platform linux, python 3.7.7-final-0 -----------
Coverage HTML written to dir htmlcov

=========================== short test summary info ============================
FAILED src/vulnix/vulnerability.py::FLAKE8
=================== 1 failed, 79 passed, 1 warning in 3.31s ====================
builder for '/nix/store/rpjlhc6yjfnb48f40dmip4zp3zpc235n-vulnix-1.9.4.drv' failed with exit code 1
error: build of '/nix/store/rpjlhc6yjfnb48f40dmip4zp3zpc235n-vulnix-1.9.4.drv' failed
##[error]Process completed with exit code 100.
haizaar commented 4 years ago

@Keidrych If it's about FAILED src/vulnix/vulnerability.py::FLAKE8 then, please provide a stand-alone reproduction (with what options and python version do you run flake8), because running flake8 with the defaults settings on https://github.com/flyingcircusio/vulnix/blob/master/src/vulnix/vulnerability.py doesn't yield any errors.

ckauhaus commented 4 years ago

I'm not able to reproduce this error on current vulnix master with Python 3.8 and flake8-1.0.6. Closing this issue. If you disagree, please reopen this issue with details on how to reproduce this problem.