Skip to content

Commit 5580231

Browse files
author
Brad Kinnard
committed
chore(makefile): pull legacy version sentinel into a make variable
1 parent 3632511 commit 5580231

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
.PHONY: regen-self-host-fixtures verify-release
22

3+
# Pre-1.0 sentinel version. Stale references to this string must not appear in
4+
# shipped files; update only if a new major version creates a new legacy line.
5+
LEGACY_VERSION := 0.2.0
6+
37
regen-self-host-fixtures:
48
python3 scripts/regen_self_host_fixtures.py
59

@@ -8,6 +12,6 @@ verify-release:
812
skillcheck --version
913
skillcheck skills/skillcheck/SKILL.md
1014
skillcheck skills/skillcheck/SKILL.md --analyze-graph
11-
grep -rn "0\.2\.0" --include="*.py" --include="*.toml" --include="*.md" --include="*.yml" src/ pyproject.toml README.md action.yml && echo "FAIL: 0.2.0 references found" && exit 1 || echo "OK: no 0.2.0 references in release files"
15+
grep -rn "$(LEGACY_VERSION)" --include="*.py" --include="*.toml" --include="*.md" --include="*.yml" src/ pyproject.toml README.md action.yml && echo "FAIL: $(LEGACY_VERSION) references found" && exit 1 || echo "OK: no $(LEGACY_VERSION) references in release files"
1216
grep -rn "moonrunnerkc/skillcheck@v0" README.md && echo "FAIL: @v0 reference in README" && exit 1 || echo "OK: no @v0 in README"
1317
@command -v python3 -c "import build" 2>/dev/null && python3 -m build --sdist --wheel || echo "INFO: build module not available, skipping sdist/wheel check"

0 commit comments

Comments
 (0)