Skip to content

fix: installer receipt for windows with posix shell #51 - #2227

Merged
mistydemeo merged 4 commits into
axodotdev:mainfrom
eegli:fix/installer-receipt-win-posix
Jan 16, 2026
Merged

mistydemeo merged 4 commits into
axodotdev:mainfrom
eegli:fix/installer-receipt-win-posix

Conversation

@eegli

@eegli eegli commented Dec 19, 2025

Copy link
Copy Markdown
Contributor

Addresses astral-sh/uv#12686.

Notes

Supersedes astral-sh#51.

@eegli

eegli commented Dec 19, 2025

Copy link
Copy Markdown
Contributor Author

Summoning @konstin

@mistydemeo

mistydemeo commented Dec 19, 2025 •

Copy link
Copy Markdown
Contributor

Are we sure cygpath is always available in MSYS2/MinGW environments? Sorry, just noticed you check for its presence before running.

@eegli

eegli commented Dec 28, 2025

Copy link
Copy Markdown
Contributor Author

Snapshots are now up to date, took me a while to figure out [email protected] is required in the path to make axolotlsay_basic pass.

@mistydemeo

Copy link
Copy Markdown
Contributor

Thanks! Sorry for the inconvenience with getting the tests running.

I see in your comment on the original issue that there were two problems - that the install location was different than expected, but also the path issue you're fixing here. Will the updater still not work properly if we fix the path issue with this PR?

@eegli

eegli commented Dec 31, 2025

Copy link
Copy Markdown
Contributor Author

@mistydemeo no worries.

Will the updater still not work properly if we fix the path issue with this PR?

The PR fixes both: On Windows, we now store the receipt in $LOCALAPPDATA (which is usually C:\Users\<user>\AppData\Local), and the path is converted via cygpath, a utility that is available in all Cygwin-based environment/shells. Since - very roughly - Git Bash ⊂ MSYS2 ⊂ Cygwin, the updater shell script has great support, especially since most Windows people likely work in Git Bash (myself included). And it's of course still compatible with Linux/MacOS.

@eegli

eegli commented Dec 31, 2025

Copy link
Copy Markdown
Contributor Author

In the worst case, (e.g., $LOCALAPPDATA is not set and cygpath does not exist (not sure if/when this is possible), we just fall back to the current behavior (which is exactly what is outlined in the original issue).

@eegli

eegli commented Jan 11, 2026

Copy link
Copy Markdown
Contributor Author

Hey @mistydemeo, do you plan to merge this at some point?

@mistydemeo mistydemeo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sorry for the delay! It's been a busy couple of weeks. Thank you for this!

Looks like there's one other PR up for something touching Astral's installers, so we'll likely look to get these out in the same release.

@mistydemeo
mistydemeo merged commit 4a8f1f3 into axodotdev:main Jan 16, 2026
@eegli
eegli deleted the fix/installer-receipt-win-posix branch January 16, 2026 07:22
@eegli

eegli commented Jan 16, 2026

Copy link
Copy Markdown
Contributor Author

No worries. Happy we could make this happen!

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