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

build: remove enable_run_as_node build flag #38413

Merged
merged 4 commits into from Jun 8, 2023
Merged

Conversation

miniak
Copy link
Contributor

@miniak miniak commented May 23, 2023

Description of Change

We don't need the buildflag anymore now that we have https://github.com/electron/electron/blob/main/docs/tutorial/fuses.md#runasnode

Checklist

Release Notes

Notes: The enable_run_as_node build flag has been removed in favor of the runAsNode fuse.

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label May 23, 2023
@miniak miniak self-assigned this May 23, 2023
@miniak miniak added semver/major incompatible API changes wip ⚒ no-backport labels May 23, 2023
@miniak miniak force-pushed the miniak/enable_run_as_node branch from 0bc8003 to 8cdc581 Compare May 25, 2023 13:17
@miniak miniak changed the title feat: remove enable_run_as_node flag build: remove enable_run_as_node build flag May 25, 2023
@electron-cation electron-cation bot added semver/none and removed new-pr 🌱 PR opened in the last 24 hours labels May 25, 2023
@miniak miniak added new-pr 🌱 PR opened in the last 24 hours and removed semver/major incompatible API changes api-review/requested 🗳 labels May 25, 2023
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label May 25, 2023
@miniak miniak added semver/patch backwards-compatible bug fixes new-pr 🌱 PR opened in the last 24 hours and removed semver/none labels May 25, 2023
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label May 25, 2023
@miniak miniak removed the wip ⚒ label Jun 6, 2023
@miniak miniak marked this pull request as ready for review June 6, 2023 19:05
@miniak miniak removed the semver/patch backwards-compatible bug fixes label Jun 6, 2023
@@ -22,10 +21,6 @@ bool IsPDFViewerEnabled() {
return BUILDFLAG(ENABLE_PDF_VIEWER);
}

bool IsRunAsNodeEnabled() {
return electron::fuses::IsRunAsNodeEnabled() && BUILDFLAG(ENABLE_RUN_AS_NODE);
Copy link
Member

Choose a reason for hiding this comment

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

I think this the feature api is still needed so that tests can be excluded based on the fuse value ?

Copy link
Contributor Author

@miniak miniak Jun 8, 2023

Choose a reason for hiding this comment

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

we don't have infra to test different fuse values unfortunately right now, it would make sense to add that as none of the other fuses are being tested

@jkleinsc jkleinsc merged commit 05d39d8 into main Jun 8, 2023
14 checks passed
@jkleinsc jkleinsc deleted the miniak/enable_run_as_node branch June 8, 2023 20:40
@release-clerk
Copy link

release-clerk bot commented Jun 8, 2023

Release Notes Persisted

The enable_run_as_node build flag has been removed in favor of the runAsNode fuse.

MrHuangJser pushed a commit to MrHuangJser/electron that referenced this pull request Dec 11, 2023
* feat: remove enable_run_as_node flag

* drop features.isRunAsNodeEnabled()

* use IsEnvSet() helper in electron_main_linux.cc

* cleanup [[maybe_unused]]

---------

Co-authored-by: Milan Burda <miburda@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants