Files
moby/hack/make/.go-autogen
CrazyMax 29758a067f IAmStatic not used anymore
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
(cherry picked from commit 84ea9ee0f9)
2023-01-02 18:46:02 +01:00

23 lines
795 B
Bash

#!/usr/bin/env bash
LDFLAGS="${LDFLAGS} \
-X \"github.com/docker/docker/dockerversion.Version=${VERSION}\" \
-X \"github.com/docker/docker/dockerversion.GitCommit=${GITCOMMIT}\" \
-X \"github.com/docker/docker/dockerversion.BuildTime=${BUILDTIME}\" \
-X \"github.com/docker/docker/dockerversion.PlatformName=${PLATFORM}\" \
-X \"github.com/docker/docker/dockerversion.ProductName=${PRODUCT}\" \
-X \"github.com/docker/docker/dockerversion.DefaultProductLicense=${DEFAULT_PRODUCT_LICENSE}\" \
"
# Compile the Windows resources into the sources
if [ "$(go env GOOS)" = "windows" ]; then
if [ ! -x "$(command -v go-winres)" ]; then
>&2 echo "go-winres not found, skipping manifesting binary"
else
(
. hack/make/.mkwinres
go generate -v "${GO_PACKAGE}"
)
fi
fi