-
Notifications
You must be signed in to change notification settings - Fork 23
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
[BUG] Using tar on Windows should call $env:WINDIR/System32/tar
and not the Git bash provided /usr/bin/tar
#205
Comments
More detailed information about this issue as more tests show that this is not linked to a change of temporary directory.
This means that currently, this action requires a Line 271 in a1561e9
More detailed answer in #206 and #207 I would sum up this issue this way.
|
julia-actions/setup-julia@v1.9.5 is using `tar` for Windows installation now but uses any `tar` from PATH. However, it requires a `tar.exe` that can handle Windows paths with drive letters. In our workflow, `tar` is found in `/usr/bin/tar` from rtools being added to PATH. This leads to error as it does not support the drive letters. Not adding rtools to PATH will solve, and should not impact the workflow as pak is used for R packages installation. More details about this issue at julia-actions/setup-julia#205
julia-actions/setup-julia@v1.9.5 is using `tar` for Windows installation now but uses any `tar` from PATH. However, it requires a `tar.exe` that can handle Windows paths with drive letters. In our workflow, `tar` is found in `/usr/bin/tar` from rtools being added to PATH. This leads to error as it does not support the drive letters. Not adding rtools to PATH will solve, and should not impact the workflow as pak is used for R packages installation. More details about this issue at julia-actions/setup-julia#205
julia-actions/setup-julia@v1.9.5 is using `tar` for Windows installation now but uses any `tar` from PATH. However, it requires a `tar.exe` that can handle Windows paths with drive letters. In our workflow, `tar` is found in `/usr/bin/tar` from rtools being added to PATH. This leads to error as it does not support the drive letters. Not adding rtools to PATH will solve, and should not impact the workflow as pak is used for R packages installation. More details about this issue at julia-actions/setup-julia#205
julia-actions/setup-julia@v1.9.5 is using `tar` for Windows installation now but uses any `tar` from PATH. However, it requires a `tar.exe` that can handle Windows paths with drive letters. In our workflow, `tar` is found in `/usr/bin/tar` from rtools being added to PATH. This leads to error as it does not support the drive letters. Not adding rtools to PATH will solve, and should not impact the workflow as pak is used for R packages installation. More details about this issue at julia-actions/setup-julia#205
julia-actions/setup-julia@v1.9.5 is using `tar` for Windows installation now but uses any `tar` from PATH. However, it requires a `tar.exe` that can handle Windows paths with drive letters. In our workflow, `tar` is found in `/usr/bin/tar` from rtools being added to PATH. This leads to error as it does not support the drive letters. Not adding rtools to PATH will solve, and should not impact the workflow as pak is used for R packages installation. More details about this issue at julia-actions/setup-julia#205
julia-actions/setup-julia@v1.9.5 is using `tar` for Windows installation now but uses any `tar` from PATH. However, it requires a `tar.exe` that can handle Windows paths with drive letters. In our workflow, `tar` is found in `/usr/bin/tar` from rtools being added to PATH. This leads to error as it does not support the drive letters. Not adding rtools to PATH will solve, and should not impact the workflow as pak is used for R packages installation. More details about this issue at julia-actions/setup-julia#205
- Python 3.12 - Julia 1.10 - R 4.3.2 - All versions of packages dependencies - Update GHA workflow accordingly - Add dev documentation - Adapt for newer Julia action issue julia-actions/setup-julia@v1.9.5 is using `tar` for Windows installation now but uses any `tar` from PATH. However, it requires a `tar.exe` that can handle Windows paths with drive letters. In our workflow, `tar` is found in `/usr/bin/tar` from rtools being added to PATH. This leads to error as it does not support the drive letters. Not adding rtools to PATH will solve, and should not impact the workflow as pak is used for R packages installation. More details about this issue at julia-actions/setup-julia#205
- Python 3.12 - Julia 1.10 - R 4.3.2 - All versions of packages dependencies - Update GHA workflow accordingly - Add dev documentation - Adapt for newer Julia action issue julia-actions/setup-julia@v1.9.5 is using `tar` for Windows installation now but uses any `tar` from PATH. However, it requires a `tar.exe` that can handle Windows paths with drive letters. In our workflow, `tar` is found in `/usr/bin/tar` from rtools being added to PATH. This leads to error as it does not support the drive letters. Not adding rtools to PATH will solve, and should not impact the workflow as pak is used for R packages installation. More details about this issue at julia-actions/setup-julia#205
- Python 3.12 - Julia 1.10 - R 4.3.2 - All versions of packages dependencies - Update GHA workflow accordingly - Add dev documentation - Adapt for newer Julia action issue julia-actions/setup-julia@v1.9.5 is using `tar` for Windows installation now but uses any `tar` from PATH. However, it requires a `tar.exe` that can handle Windows paths with drive letters. In our workflow, `tar` is found in `/usr/bin/tar` from rtools being added to PATH. This leads to error as it does not support the drive letters. Not adding rtools to PATH will solve, and should not impact the workflow as pak is used for R packages installation. More details about this issue at julia-actions/setup-julia#205
- Python 3.12 - Julia 1.10 - R 4.3.2 - All versions of packages dependencies - Update GHA workflow accordingly - Add dev documentation - Adapt for newer Julia action issue julia-actions/setup-julia@v1.9.5 is using `tar` for Windows installation now but uses any `tar` from PATH. However, it requires a `tar.exe` that can handle Windows paths with drive letters. In our workflow, `tar` is found in `/usr/bin/tar` from rtools being added to PATH. This leads to error as it does not support the drive letters. Not adding rtools to PATH will solve, and should not impact the workflow as pak is used for R packages installation. More details about this issue at julia-actions/setup-julia#205
- Python 3.12 - Julia 1.10 - R 4.3.2 - All versions of packages dependencies - Update GHA workflow accordingly - Add dev documentation - Adapt for newer Julia action issue julia-actions/setup-julia@v1.9.5 is using `tar` for Windows installation now but uses any `tar` from PATH. However, it requires a `tar.exe` that can handle Windows paths with drive letters. In our workflow, `tar` is found in `/usr/bin/tar` from rtools being added to PATH. This leads to error as it does not support the drive letters. Not adding rtools to PATH will solve, and should not impact the workflow as pak is used for R packages installation. More details about this issue at julia-actions/setup-julia#205
Big thanks to @cderv for making a fork that implements fixes from PR #206 , which have not been merged yet. I ran into this issue when running package tests that depend on R via RCall.jl. For my fellow inexperienced GitHub Actions folks, I have a matrix of OS configs that includes
Of course, if and when the PR is merged none of this will be necessary, but for now I hope this is helpful. |
Describe the bug
Recent change introduced the use of
tar
on WindowsCurrently, it is calling
tar
through PowerShell using the program name only, thus relying on PATH resolution.It happens that
/usr/bin/tar
is used (probably from Git Bash) and not the Windows internal$env:WINDIR/System32/tar.exe
.This is known to happen on github action (at least encountered in the past)
I encountered this because by modifying temp folder to be
{{ runner.temp }}
on Windows, it leads to havingtar
dealing with Windows path name with network drive letter. Only Windows's tar can handle that.This is the issue I encountered using
setup-julia
action/usr/bin/tar
is the own throwing the error{{ runner.temp }}
which is onD:
and it tries to untar onC:
.To Reproduce
I can create a simple example reproducing the
Can't connect error
but this is not the main issue I would like to report here. I believe any action using 1.9.5 is calling the/usr/bin/tar
instead of Window's tar.exeIf you would like a workflow file anyway, I can provide.
Expected behavior
Windows' own tar is used when using
tar
on Windows, which allows to correctly handle Windows paths.This change ensures it is, and it solves issue I encountered
(I modified in Fork in
dist
by convenience for testing.Screenshots/Build logs
With current 1.9.5
With a fork using Windows' tar
Additional context
Nothing more I can think of.
Happy to provide anything more needed. Please do tell me.
Thanks
The text was updated successfully, but these errors were encountered: