-
Notifications
You must be signed in to change notification settings - Fork 747
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
[WINDOWS SELF-HOSTED] Issues with "extracting" non .zip files #563
Comments
Hi, @darkwolfie37 👋 Thanks for the issue, we will take a look at it! |
Hi, @darkwolfie37 it seems that to resolve you problem you need to rename downloaded JDK archive to this pattern: |
Ok so I need to somehow edit your scripts to use powershell core or other software to make it work? Just make your script to have it download to a zip. Not my problem. |
As this seems to gone dark, I am posting this as a "bump". |
Even after installing powershell 7, the action still uses the older powershell. Powershell 7 installer seems to be designed so that it does not replace older versions, but both versions can co-exist. Both are added to the PATH but they have different exe file names. Older Powershell.exe is here: Newer Powershell is called pwsh.exe and is installed here: I'd love to get this working. Is there any way I can tell it to use pwsh.exe instead of "powershell.exe" ? |
I wish, but they have said that its a windows issue instead of their issue which makes them very incompetent to do this job. Like srsly, I brought a real issue to these people then they have the audacity to just Ghost this issue after now. Honestly kinda just not going to use their action anymore and build my minecraft mods manually. |
The downloaded file in this case already does end with the ".zip" filename. It seems that this action is re-naming it to /_work/_tmp/hashcode before trying to uncompress it. If the action would include the ".zip" extension on the end of the hashcode filename, then I expect it would work correctly. |
Agreed! This is why I made this issue as it wont open till the code renames it to a .zip. Instead I was told to rename it manually when you cant because it deletes the file so fast after failing lol |
I have the same issue and have alignment with @darkwolfie37 Any chance of having this issue considered for resolution? I have tried all the above and have no success |
I forgot that this issue was open LOL |
Hello 👋,
Thank you! |
Dear Priya,
Many thanks for reaching out.
The details that you have requested are as follows:
- The architecture of your self-hosted runner. ----- windows 10 pro x64
- The configuration details of the actions/setup-java step in your
workflow ---- this basically gets a specific java image:
uses: ***@***.***
with:
java-version: 21
check-latest: true
distribution: temurin
cache: 'gradle'
…On Wed, 18 Sept 2024 at 09:53, Priya Gupta ***@***.***> wrote:
Hello 👋,
Apologies for the delayed response. To assist in resolving this issue,
could you please provide the following details:
- The architecture of your self-hosted runner.
- The configuration details of the actions/setup-java step in your
workflow.
Thank you!
—
Reply to this email directly, view it on GitHub
<#563 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BJQRGHTHX72M754ICQJMMC3ZXE5PRAVCNFSM6AAAAABAG5XPG6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJXHA4DAOJRG4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Priya, Thanks for looking into this. Windows 10 Enterprise, 64 bit Here is my script:
I tried this first with overwrite-settings: false. In that case it seems to not download the new corretto version. Then I tried with overwrite-settings: true (which is the default). In this case, it does download the latest version of corretto and uses it in later steps, so that is basically working now. However, overwriting settings.xml is something I do NOT want. It is removing important stuff that I need in that file! But it seems to have a problem in the final clean-up step:
Note that it is saying "gzip: command not found". But gzip.exe does exist in the directory "C:\Program Files\Git\usr\bin\tar.exe" which is where the "tar.exe" command also lives. Even though it says "cache saved", nothing with the given name is saved in the maven cache. |
Another anoying thing that is happening is that ever time I run the action, it writes additional redundant information in to the maven toolchains.xml file.
It just adds that info over and over and over! Possibly caused by failure earlier in the script? Anyway, this is more of an annoyance than any real problem. |
After going through testing today to add to this bug, I realize I am no longer having the same issue as the original poster:
That is not happening to me. The action seems to be working fine if I don't try to use caching. And If I set "overwrite-settings: false" then I don't have any problem with overwriting my settings. So, for me at least, the original problem is gone and I can use this action. |
I will have to resetup my configs for this and I will get back to you |
- The architecture of your self-hosted runner. ----- windows 10 pro x64
- The configuration details of the actions/setup-java step in your
workflow ---- this basically gets a specific java image:
uses: ***@***.***
with:
java-version: 21
check-latest: true
distribution: temurin
cache: 'gradle'
…On Sat, 21 Sept 2024 at 07:52, DarkWolfie ***@***.***> wrote:
Hello 👋, Apologies for the delayed response. To assist in resolving this
issue, could you please provide the following details:
- The architecture of your self-hosted runner.
- The configuration details of the actions/setup-java step in your
workflow.
Thank you!
I will have to resetup my configs for this and I will get back to you
—
Reply to this email directly, view it on GitHub
<#563 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BJQRGHQXYSMMCEMB7SHGKFLZXUJS3AVCNFSM6AAAAABAG5XPG6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRVGAZTENJXHE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hello 👋, |
Hi, I tested your fix. It seems to work. Please Release 😊 |
Pretty much ran into this issue 10 minutes ago and
Does indeed work, thank you |
Hi @darkwolfie37, have you had a chance to resetup your configs? We have merged a pull request with potential fix. Could you please try to use Thank you @fhirt and @Dragmoria for confirming the fix! |
Once I get home, I will go and test. |
@darkwolfie37 👋, |
Interesting to see that I am facing an issue where actions/check fails to unzip the archive for no clear reason on self-hosted runner. The zip is downloaded but it fails to unzip it -- to be correct it reports it as unarchived but the only thing extracted is the main directory name, not the content. actions/checkout#1985 |
Description:
when using a selfHosted runner on github The Windows machine will fail to install java due to powershell not liking non .zip files
Task version:
Specify the task version
Platform:
Runner type:
Repro steps:
Make a fabric minecraft mod template, add a selfhosted runner to a private or public repo on github. upload the code changing the build to run on a self-hosted box, then watch as it fails.
Video of rerun showing issue: https://file.io/sk4EnEGMViVD
Expected behavior:
Installed Java and Moves on to build the fabric mod
Actual behavior:
Fails to install java due to powershell limits.
The text was updated successfully, but these errors were encountered: