<p dir="auto">As discussed <a href="https://github.com/spring-projects/spring-boot/issues/1117" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-boot/issues/1117/hovercard">here</a> it is possible for Java jar files (zip formatted archives) to include a prefixed bash script that allows them to act like fully executable applications. Many existing tools (<code class="notranslate">java -jar</code>, <code class="notranslate">unzip</code> etc) support zip files with additional prefixed bytes.</p>
<p dir="auto">Unfortunately <code class="notranslate">go</code> currently doesn't support the reading of such archives which causes problems for <a href="https://github.com/cloudfoundry/cli/issues/411" data-hovercard-type="issue" data-hovercard-url="/cloudfoundry/cli/issues/411/hovercard">the Cloud Foundry cli</a> tool.</p>
<p dir="auto">by <strong><a href="mailto:zheganin@enaza.ru">zheganin@enaza.ru</a></strong>:</p>
<pre class="notranslate">runtime package fails to pass test. Actually, this is 100% reprodicible meaning it
fails, but reasons can differ each time (I just hit all.bash every time):
- can just silently "FAIL" without stating a reason, prior to
"GOMAXPROCS=2" phase
- can state "fatal error: unexpected signal during runtime execution" as a
reason on "GOMAXPROCS=2" phase
- can state "panic: runtime error: invalid memory address or nil pointer
dereference" as a reason

OS: Solaris 11.1 amd64
Compiler:

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/gcc/4.5/lib/gcc/i386-pc-solaris2.11/4.5.2/lto-wrapper
Target: i386-pc-solaris2.11
Configured with:
/builds/hudson/workspace/nightly-update/build/i386/components/gcc45/gcc-4.5.2/configure
CC=/ws/on11update-tools/SUNWspro/sunstudio12.1/bin/cc
CXX=/ws/on11update-tools/SUNWspro/sunstudio12.1/bin/CC --prefix=/usr/gcc/4.5
--mandir=/usr/gcc/4.5/share/man --bindir=/usr/gcc/4.5/bin --libdir=/usr/gcc/4.5/lib
--sbindir=/usr/gcc/4.5/sbin --infodir=/usr/gcc/4.5/share/info
--libexecdir=/usr/gcc/4.5/lib --enable-languages=c,c++,fortran,objc --enable-shared
--with-gmp-include=/usr/include/gmp --with-mpfr-include=/usr/include/mpfr
--without-gnu-ld --with-ld=/usr/bin/ld --with-gnu-as --with-as=/usr/gnu/bin/as
CFLAGS='-g -O2 '
Thread model: posix
gcc version 4.5.2 (GCC)

Session logs attached.</pre>
<p dir="auto">Attachments:</p>
<ol dir="auto">
<li><a href="https://storage.googleapis.com/go-attachment/8343/0/session01.log" rel="nofollow">session01.log</a> (16448 bytes)</li>
<li><a href="https://storage.googleapis.com/go-attachment/8343/0/session02.log" rel="nofollow">session02.log</a> (34838 bytes)</li>
</ol>