Commit b2d3d6ce authored by dlorenc's avatar dlorenc Committed by Brad Davidson

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> (cherry picked from commit 3d25e9f6) Signed-off-by: 's avatarBrad Davidson <brad.davidson@rancher.com>
parent d1cd3399
...@@ -126,7 +126,7 @@ if [ ! -x ${INSTALLBIN}/cni ]; then ...@@ -126,7 +126,7 @@ if [ ! -x ${INSTALLBIN}/cni ]; then
fi fi
echo Building k3s echo Building k3s
CGO_ENABLED=1 "${GO}" build -tags "$TAGS" -gcflags="all=${GCFLAGS}" -ldflags "$VERSIONFLAGS $LDFLAGS $STATIC" -o bin/k3s ./cmd/server/main.go CGO_ENABLED=1 "${GO}" build -tags "$TAGS" -buildvcs=false -gcflags="all=${GCFLAGS}" -ldflags "$VERSIONFLAGS $LDFLAGS $STATIC" -o bin/k3s ./cmd/server
ln -s k3s ./bin/k3s-agent ln -s k3s ./bin/k3s-agent
ln -s k3s ./bin/k3s-server ln -s k3s ./bin/k3s-server
ln -s k3s ./bin/k3s-token ln -s k3s ./bin/k3s-token
......
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