You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
Set-up java 17 failed in all the distributions: adopt, corretto, temurin.
Task version:
v3
v4
Platform:
Ubuntu
macOS
Windows
Runner type:
Hosted
Self-hosted
Expected behavior:
Set-up java 17 works normally.
Actual behavior:
Failed with this error:
Error: The operation would yield an incorrect node tree. Cannot insert a text node as a child of a document node. Node is #text.
The text was updated successfully, but these errors were encountered:
@Nanamare
This issue is related with a post java installation step of the action that attempts to write the toolchain.xml file in the settings repository:
The code above defines the settings directory in toolchains.ts of the source code of the action.
After java is installed, unless the overwrite-settings are set to false, the action tries to overwrite the toolchain.xml file created.
Currently, there exists an open issue where for self-hosted runners, this file is not overwritten but information is appended.
I faced same issue and when I debugged the job, I found that my file was huge. I did not check the actual issue in depth since it was +40k long yet I saw a lot of repeated configurations and I expected some malformation of the file.
After the file was deleted, the issue is fixed.
Note that this may happen again at some point because of the previous open issue I mentioned.
This is only a workaround to fix the issue.
Description:
Set-up java 17 failed in all the distributions: adopt, corretto, temurin.
Task version:
Platform:
Runner type:
Expected behavior:
Set-up java 17 works normally.
Actual behavior:
Failed with this error:
Error: The operation would yield an incorrect node tree. Cannot insert a text node as a child of a document node. Node is #text.
The text was updated successfully, but these errors were encountered: