Skip to content

Commit d25b55e

Browse files
JonZeollaclaude
andcommitted
fix: move VERSION var below RUN_SCRIPT and SCRIPTS_DIR in Taskfile
Task resolves vars in definition order, so VERSION must be defined after the variables it references (RUN_SCRIPT, SCRIPTS_DIR). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 8c3ec2c commit d25b55e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

{{cookiecutter.project_name|replace(" ", "")}}/Taskfile.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ vars:
1313
PROJECT_SLUG: {{ cookiecutter.project_slug }}
1414
PYTHON_VERSION: {{ cookiecutter.python_version }}
1515
SUPPORTED_PLATFORMS: 'linux/amd64,linux/arm64'
16-
VERSION:
17-
sh: "{{ '{{.RUN_SCRIPT}}' }} {{ '{{.SCRIPTS_DIR}}' }}/get_version.py {{ '{{.PROJECT_SLUG}}' }}"
1816
RUN_SCRIPT: 'uv run --frozen'
1917
SCRIPTS_DIR: 'scripts'
18+
VERSION:
19+
sh: "{{ '{{.RUN_SCRIPT}}' }} {{ '{{.SCRIPTS_DIR}}' }}/get_version.py {{ '{{.PROJECT_SLUG}}' }}"
2020
LOCAL_PLATFORM:
2121
sh: "bash {{ '{{.SCRIPTS_DIR}}' }}/get_platform.sh"
2222
# Use PLATFORM if specified, otherwise use LOCAL_PLATFORM

0 commit comments

Comments
 (0)