From 0bfb6b0784f9f734a897870b7978f49330f44daa Mon Sep 17 00:00:00 2001 From: knative-automation Date: Tue, 22 Dec 2020 18:42:22 -0800 Subject: [PATCH] Format markdown (#282) Signed-off-by: Knative Automation --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index dbd607b1c6..d4d6f79e54 100644 --- a/README.md +++ b/README.md @@ -528,10 +528,10 @@ kubectl apply -f release.yaml ### How can I set ldflags? [Using `-ldflags`](https://blog.cloudflare.com/setting-go-variables-at-compile-time/) -is a common way to embed version info in go binaries. (In fact, [we do this for -`ko`](https://github.com/google/ko/blob/c2b862d468505dea36ed86e724ca3d190c0d462d/.goreleaser.yml#L15-L16).) -Unforunately, because `ko` wraps `go build`, it's not possible to use this -flag directly; however, you can use the `GOFLAGS` environment variable instead: +is a common way to embed version info in go binaries. (In fact, +[we do this for `ko`](https://github.com/google/ko/blob/c2b862d468505dea36ed86e724ca3d190c0d462d/.goreleaser.yml#L15-L16).) +Unforunately, because `ko` wraps `go build`, it's not possible to use this flag +directly; however, you can use the `GOFLAGS` environment variable instead: ``` GOFLAGS="-ldflags=-X=main.version=1.2.3" ko publish .