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: environment activation for windows #398

Merged
merged 1 commit into from
Nov 9, 2023

Conversation

ruben-arts
Copy link
Collaborator

Closes prefix-dev/pixi#437

The activation runs a this openssl_activate.bat when building the environment:

@echo off
if "%SSL_CERT_FILE%"=="" (
    set SSL_CERT_FILE=%CONDA_PREFIX%\Library\ssl\cacert.pem
    set __CONDA_OPENSLL_CERT_FILE_SET="1"
)

Which results in the following result when we call the env in cmdexe:

__CONDA_OPENSLL_CERT_FILE_SET="1"

This seems to be the only shell that does it that way. But our parser just keeps those " around which breaks because we add them again in our powershell fn set_env_var

This PR strips the ".

Copy link
Collaborator

@baszalmstra baszalmstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice find!

@ruben-arts ruben-arts merged commit 33d8cf1 into conda:main Nov 9, 2023
8 checks passed
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.

"pixi shell" not working in Windows PowerShell when environment contains Python
2 participants