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

Remove empty PATH entry on Windows #13903

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

Remove empty PATH entry on Windows #13903

wants to merge 1 commit into from

Conversation

scw
Copy link
Contributor

@scw scw commented May 8, 2024

With the Windows 10 release, Microsoft added an interactive editor for the PATH variable e.g. the workflow described here. This normalizes the PATH entry by appending a ; at the end of all entries. Here, because we split on the ;, we'll end up with an empty entry. Later in the activation code, the paths are normalized with os.path.normpath which will expand this to . which can affect downstream code and can cause users concern since . has a special meaning on POSIX based systems.

Description

Checklist - did you ...

  • Add a file to the news directory (using the template) for the next release's release notes?
  • Add / update necessary tests?
  • Add / update outdated documentation?

With the Windows 10 release, Microsoft added an interactive editor for the PATH variable e.g. [the workflow described here](https://learn.microsoft.com/en-us/dotnet/core/install/windows?tabs=net80#no-net-sdk-was-found). This normalizes the PATH entry by appending a `;` at the end of all entries. Here, because we split on the `;`, we'll end up with an empty entry. Later in the activation code, the paths are normalized with `os.path.normpath` which will expand this to `.` which can affect downstream code and can cause users concern since `.` has a special meaning on POSIX based systems.
@conda-bot conda-bot added the cla-signed [bot] added once the contributor has signed the CLA label May 8, 2024
Copy link

codspeed-hq bot commented May 8, 2024

CodSpeed Performance Report

Merging #13903 will not alter performance

Comparing scw:patch-2 (77c9ac7) with main (736f8fb)

Summary

✅ 21 untouched benchmarks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed [bot] added once the contributor has signed the CLA
Projects
Status: 🆕 New
Development

Successfully merging this pull request may close these issues.

None yet

2 participants