-
Notifications
You must be signed in to change notification settings - Fork 66
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
axoupdater probably dumping weird tempdir garbage all over the place on windows #1374
Comments
clarification: this doesn't break anything but is disgusting if you ever notice it |
Just had a thought. Does a new one of those appear when you It looks like the shell installer respects a Those temporary directories look like the result of binary relocation we do. Specifically, we relocate the running binary to a temporary directory on the same drive so we can then replace it with the new binary at its original path. This directory is supposed to be deleted when the installation completes, but it looks like that must not be working. |
`cargo test` outside CI would end up adding the temporary directory persistently to user's real dotfiles. Leave this on in CI because it doesn't hurt anything there. NOTE: this environment variable isn't supported on Windows at the moment - we should probably try to unify that behaviour. Refs axodotdev/cargo-dist#1374.
Just realized what must be happening. It's failing to delete the temporary directory because the running EXE is still in it, so it's leaving the directory and the old version of the EXE in place. This wasn't an issue before when we rooted the temporary directory in the system temp dir, since it would get cleaned up, but after axodotdev/axoupdater#121 the temporary directories are surviving indefinitely. I feel like I remembered somewhere seeing some kind of Windows |
This is supported from the environment in the shell installer, but was previously only supported on the CLI in the powershell installer. This will be useful to ensure axoupdater tests don't pollute the environment: axodotdev/axoupdater#168 refs #1374.
I wonder if you could use |
I'm looking into |
Two things building up on my system:
PATH starts with this huge mess
and .cargo is filling up with these:
Seemingly the raw powershell installer doesn't have this problem, so I'm forced to conclude this is axoupdater's doing.
The text was updated successfully, but these errors were encountered: