File scripts.obscpio of Package image-build-base
07070100000000000081ed00000000000000000000000167a4c67900000169000000000000000000000000000000000000001c00000000scripts/go-assert-boring.sh#!/bin/sh
if [ -z "$*" ]; then
echo "usage: $0 file1 [file2 ... fileN]"
fi
for exe in "${@}"; do
if [ ! -x "${exe}" ]; then
echo "$exe: file not found" >&2
exit 1
fi
if [ $(go tool nm ${exe} | grep Cfunc__goboringcrypto | wc -l) -eq 0 ]; then
echo "${exe}: missing goboring symbols" >&2
exit 1
fi
done
07070100000001000081ed00000000000000000000000167a4c6790000019e000000000000000000000000000000000000001c00000000scripts/go-assert-static.sh#!/bin/sh
if [ -z "$*" ]; then
echo "usage: $0 file1 [file2 ... fileN]"
fi
for exe in "${@}"; do
if [ ! -x "${exe}" ]; then
echo "$exe: file not found" >&2
exit 1
fi
if ! file "${exe}" | grep -E '.*ELF.*executable, .*, (statically|static-pie) linked,.*'; then
file "${exe}" >&2
echo "${exe}: not a statically linked executable" >&2
exit 1
fi
done
07070100000002000081ed00000000000000000000000167a4c67900000156000000000000000000000000000000000000001b00000000scripts/go-build-static.sh#!/bin/sh
export CGO_ENABLED=${CGO_ENABLED:-1}
export GOEXPERIMENT=boringcrypto
if [ "${CGO_ENABLED}" != "1" ]; then
echo "CGO_ENABLED=${CGO_ENABLED}, should be set to 1 for static goboring compilation" >&2
exit 1
fi
set -x
exec go build -ldflags "-linkmode=external -extldflags \"-static -Wl,--fatal-warnings\" ${GO_LDFLAGS}" "${@}"
07070100000003000041ed00000000000000000000000167a4c67900000000000000000000000000000000000000000000000800000000scripts07070100000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000b00000000TRAILER!!!