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

Fix pre-commit GitHub Actions job #1708

Merged
merged 1 commit into from
Dec 7, 2023
Merged

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
80 checks passed
@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