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

tool-cache extractZipWin does not support older PowerShell versions if file name does not end in .zip #1287

Closed
Vampire opened this issue Dec 23, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@Vampire
Copy link

Vampire commented Dec 23, 2022

It seems if the tool-cache extractZip function is used on a self-hosted runner where only PowerShell 5.1 or similar is available, it fails to extract the file if it does not end in .zip as the Expand-Archive cmdlet complains that it only supports files named ....zip.

It would be nice if the tool-cache extractZip function would mitigate this issue so that not all actions using it need to be "fixed".
It could for example always rename (and later rename back) or copy the file to fit the naming restriction before expanding it. Or maybe only if an powershell version that has this requirement is detected or similar.

@lukka
Copy link

lukka commented Oct 7, 2023

This is a dup of the older #1179

@Vampire Vampire closed this as not planned Won't fix, can't repro, duplicate, stale Oct 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants