From 3d25e9f66cc3d254637fb8fab8e8891e94fa6623 Mon Sep 17 00:00:00 2001 From: dlorenc Date: Thu, 12 Oct 2023 19:20:32 -0400 Subject: [PATCH] Switch build target from main.go to a package. (#8342) * Switch build target from main.go to a package. * Dont build with vcs Signed-off-by: Dan Lorenc Signed-off-by: Derek Nola Co-authored-by: Derek Nola --- scripts/build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build b/scripts/build index eaed4f93c6..c6a4b7c869 100755 --- a/scripts/build +++ b/scripts/build @@ -133,7 +133,7 @@ if [ ! -x ${INSTALLBIN}/cni ]; then fi echo Building k3s -CGO_ENABLED=1 "${GO}" build $BLDFLAGS -tags "$TAGS" -gcflags="all=${GCFLAGS}" -ldflags "$VERSIONFLAGS $LDFLAGS $STATIC" -o bin/k3s ./cmd/server/main.go +CGO_ENABLED=1 "${GO}" build $BLDFLAGS -tags "$TAGS" -buildvcs=false -gcflags="all=${GCFLAGS}" -ldflags "$VERSIONFLAGS $LDFLAGS $STATIC" -o bin/k3s ./cmd/server ln -s k3s ./bin/containerd ln -s k3s ./bin/crictl ln -s k3s ./bin/ctr