-
Notifications
You must be signed in to change notification settings - Fork 417
Only run check SIP enablement once in init step
#2441
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
Conversation
src/util.ts
Outdated
| export async function checkSipEnablement( | ||
| logger: Logger, | ||
| ): Promise<boolean | undefined> { | ||
| if (process.env[EnvVar.IS_SIP_ENABLED] !== undefined) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may also want to check that it's not the empty string (or defensively that it's either "true" or "false")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can check if it's "true" or "false" 👍 good suggestion!
Co-authored-by: Henry Mercer <[email protected]>
|
Pushed a commit to rebuild the Action. Please mark the PR as ready for review to trigger PR checks. |
* Update changelog and version after v3.26.4 * Update checked-in dependencies * Only run check SIP enablement once in `init` step (#2441) Co-authored-by: Henry Mercer <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update changelog for v3.26.5 --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Angela P Wen <[email protected]> Co-authored-by: Henry Mercer <[email protected]>
In #2434 we stopped calling the
dfsystem binary on MacOS ARM runners where SIP was disabled, but the actual call tocsrutilitself was run again and is also a binary 😸This change makes it so that
csrutilis only called once, in theinitstep before the build tracer environment variables are set, and then its result is saved in an environment variable.Merge / deployment checklist