Unverified Commit 3d25e9f6 authored by dlorenc's avatar dlorenc Committed by GitHub

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: 's avatarDan Lorenc <dlorenc@chainguard.dev> Signed-off-by: 's avatarDerek Nola <derek.nola@suse.com> Co-authored-by: 's avatarDerek Nola <derek.nola@suse.com>
parent 7c5b69ca
...@@ -133,7 +133,7 @@ if [ ! -x ${INSTALLBIN}/cni ]; then ...@@ -133,7 +133,7 @@ if [ ! -x ${INSTALLBIN}/cni ]; then
fi fi
echo Building k3s 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/containerd
ln -s k3s ./bin/crictl ln -s k3s ./bin/crictl
ln -s k3s ./bin/ctr ln -s k3s ./bin/ctr
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment