From ea637c9067772bd904bb8e0f99c2c5b43c97cbf4 Mon Sep 17 00:00:00 2001 From: Lazar Bulovan Date: Sat, 18 Jul 2026 16:47:18 +0200 Subject: [PATCH] fix: pass version via env var instead of template in build script The {{version}} template is only interpolated for the env: and asset: fields, not for the build.run script (which is passed verbatim to bash). Move the version into env: as VERSION="{{version}}" and reference it as $VERSION in the script. --- packages/tia-lsp/package.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/tia-lsp/package.yaml b/packages/tia-lsp/package.yaml index 9e6cfb9..6ac9d7a 100644 --- a/packages/tia-lsp/package.yaml +++ b/packages/tia-lsp/package.yaml @@ -12,8 +12,10 @@ categories: source: id: pkg:generic/tia-lsp@0.1.0 build: + env: + VERSION: "{{version}}" run: | - git clone --depth 1 --branch v{{version}} https://gitea.l-tech.rs/lazar/tia-lsp.git tia-lsp-src + git clone --depth 1 --branch "v$VERSION" https://gitea.l-tech.rs/lazar/tia-lsp.git tia-lsp-src cp -r tia-lsp-src/src ./src mkdir -p bin printf '#!/bin/bash\nexec lua "$(dirname "$0")/../src/main.lua" "$@"\n' > bin/tia-lsp