Skip to content

Conversation

@eegli
Copy link

@eegli eegli commented Dec 19, 2025

Addresses astral-sh/uv#12686.

Notes

Supersedes astral-sh#51.

@eegli
Copy link
Author

eegli commented Dec 19, 2025

Summoning @konstin

@mistydemeo
Copy link
Contributor

mistydemeo commented Dec 19, 2025

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

# Use cygpath to convert path, then escape backslashes for JSON
cygpath -w "$_path" | sed 's/\\/\\\\/g'
else
echo "$_path"
Copy link
Contributor

Choose a reason for hiding this comment

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

In this case we know the path is likely to be wrong but we're not going to be able to convert it, right?

Copy link
Author

@eegli eegli Dec 20, 2025

Choose a reason for hiding this comment

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

Yes, this will mirror the current behavior with the difference that the receipt is dumped to $LOCALAPPDATA - the correct location for Windows - but with POSIX paths.

Not being able to convert is an edge case that only happens if your environment is not based on Cygwin. cygpath is available on MSYS2, Git bash (which is based on MSYS2) and of course Cygwin itself. Those three probably cover almost all of the Windows-POSIX landscape.

It really is an edge case. If there are complaints, we could still introduce manual path conversion for when cygpath is not available (I don't really know when this could happen).

@eegli
Copy link
Author

eegli commented Dec 28, 2025

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.

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