Skip to content

lint fails on main #206

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

Open
jku opened this issue Apr 28, 2025 · 2 comments
Open

lint fails on main #206

jku opened this issue Apr 28, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@jku
Copy link
Member

jku commented Apr 28, 2025

make lint fails with current main branch (both in CI and locally):

2025-04-28T11:24:58.2900106Z ./env/bin/pip-compile --generate-hashes --output-file=requirements.txt requirements.in
2025-04-28T11:25:01.9671607Z Traceback (most recent call last):
2025-04-28T11:25:01.9681770Z   File "/home/runner/work/sigstore-conformance/sigstore-conformance/./env/bin/pip-compile", line 8, in <module>
2025-04-28T11:25:01.9682748Z     sys.exit(cli())
2025-04-28T11:25:01.9683109Z              ^^^^^
2025-04-28T11:25:01.9684248Z   File "/home/runner/work/sigstore-conformance/sigstore-conformance/env/lib/python3.11/site-packages/click/core.py", line 1161, in __call__
2025-04-28T11:25:01.9685390Z     return self.main(*args, **kwargs)
2025-04-28T11:25:01.9685903Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-04-28T11:25:01.9687018Z   File "/home/runner/work/sigstore-conformance/sigstore-conformance/env/lib/python3.11/site-packages/click/core.py", line 1082, in main
2025-04-28T11:25:01.9687831Z     rv = self.invoke(ctx)
2025-04-28T11:25:01.9688046Z          ^^^^^^^^^^^^^^^^
2025-04-28T11:25:01.9688899Z   File "/home/runner/work/sigstore-conformance/sigstore-conformance/env/lib/python3.11/site-packages/click/core.py", line 1443, in invoke
2025-04-28T11:25:01.9689556Z     return ctx.invoke(self.callback, **ctx.params)
2025-04-28T11:25:01.9689844Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-04-28T11:25:01.9690479Z   File "/home/runner/work/sigstore-conformance/sigstore-conformance/env/lib/python3.11/site-packages/click/core.py", line 788, in invoke
2025-04-28T11:25:01.9691058Z     return __callback(*args, **kwargs)
2025-04-28T11:25:01.9691304Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-04-28T11:25:01.9692189Z   File "/home/runner/work/sigstore-conformance/sigstore-conformance/env/lib/python3.11/site-packages/click/decorators.py", line 33, in new_func
2025-04-28T11:25:01.9692990Z     return f(get_current_context(), *args, **kwargs)
2025-04-28T11:25:01.9693266Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-04-28T11:25:01.9693915Z   File "/home/runner/work/sigstore-conformance/sigstore-conformance/env/lib/python3.11/site-packages/piptools/scripts/compile.py", line 471, in cli
2025-04-28T11:25:01.9694631Z     hashes = resolver.resolve_hashes(results) if generate_hashes else None
2025-04-28T11:25:01.9694975Z              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-04-28T11:25:01.9695620Z   File "/home/runner/work/sigstore-conformance/sigstore-conformance/env/lib/python3.11/site-packages/piptools/resolver.py", line 167, in resolve_hashes
2025-04-28T11:25:01.9696310Z     with self.repository.allow_all_wheels(), log.indentation():
2025-04-28T11:25:01.9696853Z   File "/opt/hostedtoolcache/Python/3.11.12/x64/lib/python3.11/contextlib.py", line 137, in __enter__
2025-04-28T11:25:01.9862576Z     return next(self.gen)
2025-04-28T11:25:01.9863058Z            ^^^^^^^^^^^^^^
2025-04-28T11:25:01.9864631Z   File "/home/runner/work/sigstore-conformance/sigstore-conformance/env/lib/python3.11/site-packages/piptools/repositories/local.py", line 104, in allow_all_wheels
2025-04-28T11:25:01.9866185Z     with self.repository.allow_all_wheels():
2025-04-28T11:25:01.9867220Z   File "/opt/hostedtoolcache/Python/3.11.12/x64/lib/python3.11/contextlib.py", line 137, in __enter__
2025-04-28T11:25:01.9868174Z     return next(self.gen)
2025-04-28T11:25:01.9868809Z            ^^^^^^^^^^^^^^
2025-04-28T11:25:01.9870239Z   File "/home/runner/work/sigstore-conformance/sigstore-conformance/env/lib/python3.11/site-packages/piptools/repositories/pypi.py", line 452, in allow_all_wheels
2025-04-28T11:25:01.9871284Z     self.finder.find_all_candidates.cache_clear()
2025-04-28T11:25:01.9871641Z     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-04-28T11:25:01.9872060Z AttributeError: 'function' object has no attribute 'cache_clear'

@jku jku added the enhancement New feature or request label Apr 28, 2025
@jku
Copy link
Member Author

jku commented Apr 28, 2025

this is a pip / pip-tools incompatibility issue that can be worked around by not using pip 25.1

@di
Copy link
Member

di commented Apr 28, 2025

This is jazzband/pip-tools#2176.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants