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

Use Bazel's default PATH when running Python actions #217

Merged
merged 2 commits into from
Dec 1, 2022

Conversation

fmeum
Copy link
Member

@fmeum fmeum commented Nov 21, 2022

Without use_default_shell_env, PATH was not set for Python actions, which resulted in python (or python3) not being found.

Without `use_default_shell_env`, `PATH` was not set for Python actions,
which resulted in `python` (or `python3`) not being found.
@fmeum
Copy link
Member Author

fmeum commented Nov 21, 2022

@stefanbucur The fix consists of two parts: the first commit of this PR and google/oss-fuzz#9024, which I mocked with the temporary second commit.

@fmeum
Copy link
Member Author

fmeum commented Nov 23, 2022

The second commit was no longer necessary, but I saw CI runs fail for a different reason now (ubuntu-latest switching to 22.04), so I pushed another commit to pin to the old version explicitly.

@fmeum
Copy link
Member Author

fmeum commented Nov 23, 2022

The Java run fails due to upstream changes in OSS-Fuzz. I will try to fix that separately, but it would be easier if we could get this PR merged first despite that failure.

ubuntu-latest now resolves to ubuntu-22.04, which does not provide
clang-10.
@fmeum
Copy link
Member Author

fmeum commented Nov 24, 2022

@stefanbucur The upstream change has been reverted, so this is all green now.

Copy link
Collaborator

@stefanbucur stefanbucur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Opened #221 to keep track of the ubuntu-latest issue.

@stefanbucur stefanbucur merged commit 4cce8c7 into bazel-contrib:master Dec 1, 2022
@fmeum fmeum deleted the fix-python-build branch December 2, 2022 16:11
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