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

hatch commands do not handle case-insensitive paths as cwd on Windows #1350

Closed
karrtikr opened this issue Mar 26, 2024 · 3 comments · Fixed by #1373
Closed

hatch commands do not handle case-insensitive paths as cwd on Windows #1350

karrtikr opened this issue Mar 26, 2024 · 3 comments · Fixed by #1373

Comments

@karrtikr
Copy link

karrtikr commented Mar 26, 2024

Hi VS Code dev here 👋

Same issue as python-poetry/poetry#3829 for Poetry. If hatch commands are run using cwd with a lower drive letter, they are converted to the wrong hash. For eg. hatch env find default would result in different results if drive letter in cwd is lowercased v/s not.

This leads to no hatch environments being discovered on Windows as we're looking into the wrong directory (because of wrong hash) for python executables.

@ofek
Copy link
Sponsor Collaborator

ofek commented Mar 26, 2024

Can you tell me how I might test that from a Windows terminal?

@karthiknadig
Copy link

You can do something like this:
image

@karrtikr
Copy link
Author

You can also cd into the lowercase directory and then run the same command to get a different result:

image

v/s

image

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 a pull request may close this issue.

3 participants