Exposing global "REPLIT_LD_LOADER" property to be picked up by replenv builder #394
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why
For better or worse,
uv
mandates the virtualenv being a "real" virtualenv, includingbin/python
symlinks. This subverts our attempts to manipulate the environment via shell-script wrappers, causing runtime library issues.By moving the environment shuffling into the replenv builder itself, curating the environment itself instead of the wrapper scripts, we can have both uv as well as tools like rtld-loder.
What changed
REPLIT_LD_AUDIT
Test plan
I should be able to
echo $REPLIT_LD_AUDIT
and get the value defined even on an empty Repl.Rollout