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

[Bug]: configure descends into virtual env #715

Open
alexeagle opened this issue Jun 16, 2024 · 1 comment
Open

[Bug]: configure descends into virtual env #715

alexeagle opened this issue Jun 16, 2024 · 1 comment
Labels
bug Something isn't working untriaged Requires traige

Comments

@alexeagle
Copy link
Member

What happened?

Updating BUILD files for python
2024/06/16 09:53:22 ERROR: failed to validate dependencies for target "//app": "_pytest._py.error" at line 6 from "app/.app_test.venv/lib/python3.12/site-packages/py.py" is an invalid dependency: possible solutions:
1. Add it as a dependency in the requirements.txt file.
2. Instruct Gazelle to resolve to a known dependency using the gazelle:resolve directive.
3. Ignore it with a comment '# gazelle:ignore _pytest._py.error' in the Python file.

Version

HEAD

How to reproduce

No response

Any other information?

I know I can .bazelignore that folder, but that's frustrating because users are going to sprinkle these all over the place and will be impossible to update .bazelignore all the time.

Maybe this should be filed against rules_python, @jbedard WDYT?

@alexeagle alexeagle added the bug Something isn't working label Jun 16, 2024
@github-actions github-actions bot added the untriaged Requires traige label Jun 16, 2024
@jbedard
Copy link
Member

jbedard commented Jul 11, 2024

I don't know enough about these files in python to say, but I assume it either needs to be .bazelignored or the rules_python gazelle extension needs to handle this. Or I guess manually doing # gazelle:ignore on each one might work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged Requires traige
Projects
None yet
Development

No branches or pull requests

2 participants