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

fix: added missing hook_preamble() for powershell hook #2761

Merged
merged 1 commit into from
Aug 21, 2023

Conversation

chawyehsu
Copy link
Contributor

@chawyehsu chawyehsu commented Aug 18, 2023

Close #2696
Fix #2651

Detailed in #2651 (comment)

micromamba 'shell' 'hook' -s 'powershell' generates,

before:

Import-Module "$Env:MAMBA_ROOT_PREFIX\condabin\Mamba.psm1" -ArgumentList $MambaModuleArgs

Remove-Variable MambaModuleArgs

after:

when changeps1 is set to true,

$MambaModuleArgs = @{ChangePs1 = $True}
Import-Module "$Env:MAMBA_ROOT_PREFIX\condabin\Mamba.psm1" -ArgumentList $MambaModuleArgs

Remove-Variable MambaModuleArgs

when changeps1 is set to false,

$MambaModuleArgs = @{ChangePs1 = $False}
Import-Module "$Env:MAMBA_ROOT_PREFIX\condabin\Mamba.psm1" -ArgumentList $MambaModuleArgs

Remove-Variable MambaModuleArgs

@AntoinePrv
Copy link
Member

Thanks! Let me finish fixing the CI and re-run this.

@AntoinePrv AntoinePrv merged commit 33fa5a1 into mamba-org:main Aug 21, 2023
20 checks passed
cvanelteren pushed a commit to cvanelteren/mamba that referenced this pull request Aug 29, 2023
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.

Powershell "MambaModuleArgs" Variable not found.
2 participants