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
The unpacking of the golang tar (by a java process) fails due to a couple of filenames in the tar containing non-ascii characters.
Error:
FATAL: Failed to install https://dl.google.com/go/go1.12.linux-amd64.tar.gz to /home/jenkins/jenkins_slave/tools/org.jenkinsci.plugins.golang.GolangInstallation/go-1.12
java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: /home/jenkins/jenkins_slave/tools/org.jenkinsci.plugins.golang.GolangInstallation/go-1.12/go/test/fixedbugs/issue27836.dir/??main.go
at sun.nio.fs.UnixPath.encode(UnixPath.java:147)
Perhaps it is possible to solve the issue by tweaking the startup options of the java process (file.encoding, sun.jnu.encoding, ...)
But it would be more robust if the tar does not contain filenames with special characters. In earlier versions (e.g. 1.11.5 ) it was not yet the case.
The text was updated successfully, but these errors were encountered:
The tar archive is in POSIX format which is the most recent and flexible format. It is perfectly valid to have non-ASCII names in a POSIX format tar archive.
In this case, the UTF-8 filename was needed for a test. So there is nothing much we can do about it. Even if we had light and full versions of the distribution, some version of it has to have this file.
I would suggest you to look into the java process extracting the archive and fixing some encoding attributes that you mentioned.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Unpack of https://dl.google.com/go/go1.12.linux-amd64.tar.gz on a Jenkins slave
What did you expect to see?
go1.12 being installed on the Jenkins slave
What did you see instead?
The unpacking of the golang tar (by a java process) fails due to a couple of filenames in the tar containing non-ascii characters.
Error:
FATAL: Failed to install https://dl.google.com/go/go1.12.linux-amd64.tar.gz to /home/jenkins/jenkins_slave/tools/org.jenkinsci.plugins.golang.GolangInstallation/go-1.12
java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: /home/jenkins/jenkins_slave/tools/org.jenkinsci.plugins.golang.GolangInstallation/go-1.12/go/test/fixedbugs/issue27836.dir/??main.go
at sun.nio.fs.UnixPath.encode(UnixPath.java:147)
Perhaps it is possible to solve the issue by tweaking the startup options of the java process (file.encoding, sun.jnu.encoding, ...)
But it would be more robust if the tar does not contain filenames with special characters. In earlier versions (e.g. 1.11.5 ) it was not yet the case.
The text was updated successfully, but these errors were encountered: