Repository navigation
Conversation
Member
|
Thank you! I took your commit and re-applied it in a new PR since that's the only way to update trampolines for security reasons: #6210 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Fixes #6002
When a package provides the
global-ignore-conda-prefixmarker, the trampoline configuration currently removesCONDA_PREFIXbut can still keep Conda stack variables such asCONDA_SHLVL. That leaves a long-lived globally installed shell with an incomplete Conda activation state.This change clears the related Conda stack variables together with
CONDA_PREFIXfor that marker, while preserving unrelated activation variables in the trampoline environment.How Has This Been Tested?
PATH="$HOME/.cargo/bin:$PATH" cargo test -p pixi_global test_global_ignore_conda_prefix_removes_incomplete_conda_stackPATH="$HOME/.cargo/bin:$PATH" cargo test -p pixi_globalPATH="$HOME/.cargo/bin:$PATH" cargo fmt --checkCARGO_TARGET_DIR=target/pixi PATH="$HOME/.cargo/bin:$PATH" cargo build -p pixiuv run --python 3.12 --with pytest --with inline-snapshot --with pytest-timeout --with pytest-xdist --with pytest-rerunfailures --with dirty-equals --with filelock --with py-rattler --with pyyaml python -m pytest --pixi-build=debug tests/integration_python/pixi_global/test_trampoline.py -k test_trampoline_considers_global_config_json -qgit diff --checkAI Disclosure
Tools: Codex
Prompt summary: inspect the reported trampoline environment bug, add focused regression coverage, keep the fix narrow, and verify locally.
Checklist: