Skip to content

Conversation

@nicholasjng
Copy link
Contributor

For some reason, editable pip installs are now broken, which means that they will break the pre-commit workflow due to the pip install -e . instruction.

Since the normal install is unaffected, we can just drop the -e switch. It does not matter which mode is used, since the environment is only used for linting.

I debugged a little bit, and found the reason why editable installs do not work right now - I just have not figured out a way to
change the Bazel extension class to do the right thing yet. (Debugging setuptools is not nice, since a lot of the package is stub files, and each entry point loads a different command).

For some reason, editable pip installs are now broken, which means that
they will break the pre-commit workflow due to the `pip install -e .`
instruction.

Since the normal install is unaffected, we can just drop the `-e` switch.
It does not matter which mode is used, since the environment is only
used for linting.
@nicholasjng
Copy link
Contributor Author

Test failure (timeout in gtest) seems to be a flake?

@dmah42
Copy link
Member

dmah42 commented Dec 7, 2023

Test failure (timeout in gtest) seems to be a flake?

rerunning to confirm.

@dmah42 dmah42 merged commit 68689bf into google:main Dec 7, 2023
@nicholasjng nicholasjng deleted the pre-commit-fix branch December 7, 2023 10:09
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

Successfully merging this pull request may close these issues.

2 participants