From 99c906c3c59069aea696bdda51f2a6f57dd8392d Mon Sep 17 00:00:00 2001 From: Lukasz Raczylo Date: Wed, 20 May 2026 23:23:02 +0100 Subject: [PATCH] fix(make): SCRAPE_INPUT tracks latest.html symlink (#4) regen-from-fixture (used by ci.yml codegen-clean gate) hardcoded testdata/html/snapshot_2026-05-08.html. After regen.yml committed a newer snapshot via PR, the pinned path drifted from committed api/ output and codegen-clean failed on main. Resolving SCRAPE_INPUT via `readlink testdata/html/latest.html` lets each regen automatically advance the fixture pointer without a manual Makefile bump, while preserving the override (`SCRAPE_INPUT=path \ make regen-from-fixture`) for ad-hoc replays of historical snapshots. --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index dd33362..ea9c282 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,10 @@ lint: vet integration: $(GO) test -tags=integration -v ./test/integration/... -SCRAPE_INPUT ?= testdata/html/snapshot_2026-05-08.html +# Resolve via testdata/html/latest.html symlink so the pinned-fixture target +# auto-tracks whatever snapshot regen.yml last committed. Override with +# SCRAPE_INPUT=path/to/snapshot.html for ad-hoc replays. +SCRAPE_INPUT ?= testdata/html/$(shell readlink testdata/html/latest.html) SCRAPE_OUTPUT ?= internal/spec/api.json snapshot: