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

Improve PowerShell plugin's profile handling functionality #1777

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Jun 21, 2024

  1. Improve PowerShell plugin's profile handling functionality

    * Add support for the `package_commands_sourced_first` config switch.
    
    Prior to this change, the rez PowerShell implementation would always
    source the rez context script after the user/host profile scripts, so
    profile-level modifications to environment variables like `PATH` were
    always squashed by the unconditional overrides in the context script.
    
    With this change, the relative source order of the shell profile vs.
    the context script can be properly controlled using the
    `package_commands_sourced_first` config option, matching the behavior
    of `SH`-based shells.
    
    NOTE: Because this config option defaults to True, this commit also
    implicitly changes rez's default behavior to source the shell profile
    *after* the context when using PowerShell.
    
    * Support the `norc` shell plugin option, which enables the use of
    `rez-env --norc` to bypass the sourcing of any profile scripts.
    
    Signed-off-by: Nathan Rusch <[email protected]>
    nrusch committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    7f3678a View commit details
    Browse the repository at this point in the history