-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
The PATH has changed on Windows, and the Git shell tar is used instead of Windows tar #480
Comments
Gist with the full output for PATH before and after: The last entry, |
And Git's |
@eine is it critical for you to use tar instead of 7z? |
Another bug of the Git shell |
@eregon yeah, that makes sense. We've rolled back the changes and will deliver the fixed image next week. |
@eregon The changes have been delivered. Closing the issue, but feel free to reopen if you have any concerns. |
Is there now no |
@ihnorton hmm, both work just fine for me now.
|
My mistake, thanks. |
The issue persists in |
@Holzhaus , It is expected behavior for |
@maxim-lobanov, MSYS2's tar is also available on either Windows 2016 or Windows 2019, isn't it? |
@eine , as far as I know, actions/cache doesn't work with MSYS tar: actions/toolkit#632 |
So |
@Holzhaus, I suggest subscribing to actions/toolkit#632. |
actions/cache@v2 doesn't work on windows-2016 images, since those contain the GNU tar, which cannot work with \ as path separator. This was fixed in package @actions/cache v1.0.5, which is used by action actions/[email protected] [1][2]. In addition, it simply couldn't find tar.exe on those images thanks to my action cleanup-path, which removed the corresponding directory (I think it was Git's bin/) from PATH. It worked for windows-2019 images thanks to them containing tar.exe in System32. Solved by turning cleanup-path into a JavaScript action with a "post" step, which restores the original PATH value. [1]: actions/runner-images#480 [2]: actions/toolkit#632
Describe the bug
The PATH has changed on Windows in the last 24 hours.
ruby/setup-ruby#28 has all the details.
Basically, any
tar
command ran on Windows now usesC:\Program Files\Git\usr\bin\tar.exe
instead of previously
C:\windows\system32\tar.exe
.That includes
actions/tool-cache
'sextractTar()
.The first
tar.exe
seems mostly broken with Windows-like paths, and givesWe can see the PATH changed in
https://github.com/ruby/jruby-dev-builder/runs/470590213?check_suite_focus=true (working)
https://github.com/ruby/jruby-dev-builder/runs/473104647?check_suite_focus=true (failing)
Differences:
Area for Triage:
Question, Bug, or Feature?:
Bug
Virtual environments affected
Expected behavior
extractTar() and
tar
in the default shell should work on Windows with Windows paths (e.g., C:...).Actual behavior
It breaks as shown above.
The text was updated successfully, but these errors were encountered: