From 236f8dede35a9beda0ca537df93b48c89f8acd33 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Mon, 20 May 2024 10:18:44 -0400 Subject: [PATCH] fix(templ) closes #6183 --- projects/templ.guide/package.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/projects/templ.guide/package.yml b/projects/templ.guide/package.yml index 8b23ab9e..ce8219d0 100644 --- a/projects/templ.guide/package.yml +++ b/projects/templ.guide/package.yml @@ -1,10 +1,9 @@ distributable: - url: https://github.com/a-h/templ/archive/refs/tags/v{{version}}.tar.gz + url: https://github.com/a-h/templ/archive/refs/tags/{{version.tag}}.tar.gz strip-components: 1 versions: github: a-h/templ - strip: /^v/ build: dependencies: @@ -16,9 +15,8 @@ build: - -w - -s script: - - go build -v -ldflags="$LDFLAGS" -o templ ./cmd/templ - - mkdir -p "{{ prefix }}"/bin - - mv templ "{{ prefix }}"/bin + - echo -n {{ version }} >.version + - go build -v -ldflags="$LDFLAGS" -o "{{ prefix }}"/bin/templ ./cmd/templ provides: - bin/templ