Przeglądaj źródła

hack/make/.go-autogen: fix LDFLAGS to accept values with spaces

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 5 lat temu
rodzic
commit
572cb55c0e
1 zmienionych plików z 8 dodań i 8 usunięć
  1. 8 8
      hack/make/.go-autogen

+ 8 - 8
hack/make/.go-autogen

@@ -7,14 +7,14 @@ source hack/dockerfile/install/tini.installer
 source hack/dockerfile/install/containerd.installer
 source hack/dockerfile/install/containerd.installer
 
 
 LDFLAGS="${LDFLAGS} \
 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.IAmStatic=${IAMSTATIC:-true} \
-	-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} \
-	-X github.com/docker/docker/dockerversion.InitCommitID=${TINI_COMMIT} \
+	-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.IAmStatic=${IAMSTATIC:-true}\" \
+	-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}\" \
+	-X \"github.com/docker/docker/dockerversion.InitCommitID=${TINI_COMMIT}\" \
 "
 "
 
 
 # Compile the Windows resources into the sources
 # Compile the Windows resources into the sources