mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-08-05 04:39:54 +00:00
Disable urfave markdown/man docs generation
From https://github.com/urfave/cli/pull/1383 : > This removes the resulting binary dependency on cpuguy83/md2man and > russross/blackfriday (and a few more packages imported by those), > which saves more than 400 KB (more than 300 KB > once stripped) from the resulting binary. Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
committed by
Brad Davidson
parent
a9b5a1933f
commit
06e40ec6e7
@@ -58,8 +58,9 @@ LDFLAGS="
|
||||
-X github.com/k3s-io/k3s/pkg/version.GitCommit=${COMMIT:0:8}
|
||||
-w -s
|
||||
"
|
||||
TAGS="urfave_cli_no_docs"
|
||||
STATIC="-extldflags '-static'"
|
||||
CGO_ENABLED=0 "${GO}" build -ldflags "$LDFLAGS $STATIC" -o ${CMD_NAME} ./cmd/k3s/main.go
|
||||
CGO_ENABLED=0 "${GO}" build -tags "$TAGS" -ldflags "$LDFLAGS $STATIC" -o ${CMD_NAME} ./cmd/k3s/main.go
|
||||
|
||||
stat ${CMD_NAME}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user