mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 20:59:41 +02:00
k3s: pass -trimpath to improve reproducibility
This commit is contained in:
parent
f20516d0fd
commit
c991546a7f
|
@ -683,7 +683,7 @@ do_compile() {
|
|||
|
||||
cp ${WORKDIR}/modules.txt vendor/
|
||||
|
||||
${GO} build -tags "$TAGS" -ldflags "${GO_BUILD_LDFLAGS} -w -s" -o ./dist/artifacts/k3s ./cmd/server/main.go
|
||||
${GO} build -trimpath -tags "$TAGS" -ldflags "${GO_BUILD_LDFLAGS} -w -s" -o ./dist/artifacts/k3s ./cmd/server/main.go
|
||||
|
||||
# Use UPX if it is enabled (and thus exists) to compress binary
|
||||
if command -v upx > /dev/null 2>&1; then
|
||||
|
|
Loading…
Reference in New Issue
Block a user