Skip to content

rework on rc_service_*env api#1025

Merged
navi-desu merged 3 commits into
masterfrom
environagain
Jun 21, 2026
Merged

rework on rc_service_*env api#1025
navi-desu merged 3 commits into
masterfrom
environagain

Conversation

@navi-desu

Copy link
Copy Markdown
Member

the original api was made before we settled on reexport

having the reexport list makes it simpler and cleaner to handle
exported variabes one-at-a-time over as a block, and allow us to
trivially enforce that only the reexported list are loaded into
dependees

also, it's more intuitive as it matches what libc's getenv/setenv looks like

the original api was made before we settled on reexport

having the reexport list makes it simpler and cleaner to handle
exported variabes one-at-a-time over as a block, and allow us to
trivially enforce that only the reexported list are loaded into
dependees
the service must be started, and the listed variables must be in the
`reexport` list
avoids leaking reexports from parent openrc-run processes
@navi-desu navi-desu merged commit f16f457 into master Jun 21, 2026
8 checks passed
@navi-desu navi-desu deleted the environagain branch June 21, 2026 22: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.

1 participant