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 backwards compatible layout check when $HOME is not set on Windows #1541

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

zanieb
Copy link
Contributor

@zanieb zanieb commented Nov 8, 2024

The patch in #1538 fails on PowerShell if $HOME is not set because Join-Path will not accept an empty string.

We should probably just bail entirely if $HOME isn't set, but checking if the install path is equal to ./.cargo seems fine too and is the simpler change for now.

@zanieb zanieb force-pushed the zb/fix-empty-home branch from 4877cd3 to 378a54e Compare November 8, 2024 21:03
@zanieb zanieb marked this pull request as ready for review November 8, 2024 21:13
@ashleygwilliams ashleygwilliams merged commit 43bc9a6 into axodotdev:main Nov 8, 2024
9 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.

2 participants