Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: pypa/virtualenv
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 21.4.1
Choose a base ref
...
head repository: pypa/virtualenv
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 21.4.2
Choose a head ref
  • 2 commits
  • 2 files changed
  • 3 contributors

Commits on May 31, 2026

  1. 🐛 fix(activation): silence deactivate hash -r under set -e (#3152)

    Sourcing the bash/zsh activation script and later running `deactivate`
    could abort the shell when strict mode is on. 🐚 Under `set -euo
    pipefail` with shell command hashing disabled (`set +h`), the `hash -r`
    call inside `deactivate()` returns non-zero, and `2>/dev/null` only
    hides its stderr, not its exit status, so the failing command tears down
    the session.
    
    The `deactivate()` call now appends `|| true`, the same guard the
    trailing activation-time `hash -r` already carried. This brings the two
    `hash -r` sites into line and mirrors the equivalent CPython `venv`
    change in gh-149701.
    
    The fix is confined to the bash/zsh activator; behavior under non-strict
    shells is unchanged since `hash -r` already succeeded there.
    
    ---------
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    gaborbernat and pre-commit-ci[bot] authored May 31, 2026
    Configuration menu
    Copy the full SHA
    b724203 View commit details
    Browse the repository at this point in the history
  2. release 21.4.2

    gaborbernat committed May 31, 2026
    Configuration menu
    Copy the full SHA
    3cf1a29 View commit details
    Browse the repository at this point in the history
Loading