summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rwxr-xr-xREADME.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/README.md b/README.md
index 9dd9d17..4126803 100755
--- a/README.md
+++ b/README.md
@@ -20,6 +20,9 @@ can also add the `-ldflags "-w -s"` argument (GCCGO has a different name for it
`go build -tags embed -ldflags "-w -s"`
+Such a build reports its version as `dev`. To stamp one in, as the release
+workflow does from the git tag, add `-X main.version=<version>` to the ldflags.
+
## Docker
Prebuilt multi-arch images (`linux/amd64`, `linux/arm64`) are published to GHCR
on every release tag: