From a5cc1f64af8e18fa43bfef4cb6e7930d46a55045 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Sat, 26 Nov 2022 08:16:08 -0500 Subject: [PATCH] inject versions for charm tools --- projects/charm.sh/glow/package.yml | 2 +- projects/charm.sh/gum/package.yml | 2 +- projects/charm.sh/vhs/package.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/charm.sh/glow/package.yml b/projects/charm.sh/glow/package.yml index 527d755e..2b63d5cf 100644 --- a/projects/charm.sh/glow/package.yml +++ b/projects/charm.sh/glow/package.yml @@ -21,7 +21,7 @@ build: env: GO111MODULE: on LDFLAGS: - - -s -w + [-s, -w, "-X=main.Version={{version}}"] linux: # or segmentation fault # fix found here https://github.com/docker-library/golang/issues/402#issuecomment-982204575 diff --git a/projects/charm.sh/gum/package.yml b/projects/charm.sh/gum/package.yml index c99bee00..f0ee9450 100644 --- a/projects/charm.sh/gum/package.yml +++ b/projects/charm.sh/gum/package.yml @@ -21,7 +21,7 @@ build: env: GO111MODULE: on LDFLAGS: - - -s -w + [-s, -w, "-X=main.Version={{version}}"] linux: # or segmentation fault # fix found here https://github.com/docker-library/golang/issues/402#issuecomment-982204575 diff --git a/projects/charm.sh/vhs/package.yml b/projects/charm.sh/vhs/package.yml index f7f7a126..30a537f8 100644 --- a/projects/charm.sh/vhs/package.yml +++ b/projects/charm.sh/vhs/package.yml @@ -26,7 +26,7 @@ build: mv vhs "{{ prefix }}"/bin env: LDFLAGS: - - -s -w + [-s, -w, "-X=main.Version={{version}}"] linux: # or segmentation fault # fix found here https://github.com/docker-library/golang/issues/402#issuecomment-982204575