From fd5cd98a7f3ddbc982b4f9e2fa3c3f1264d8a6ee Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Tue, 24 Nov 2026 02:01:29 +0100 Subject: [PATCH] fix: read wanted dumps beside the site database --- scripts/sitegen/build.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/sitegen/build.py b/scripts/sitegen/build.py index 510d70b62..33573858a 100644 --- a/scripts/sitegen/build.py +++ b/scripts/sitegen/build.py @@ -669,10 +669,14 @@ def generate_site(args: argparse.Namespace) -> None: [cov["config"] for cov in coverages.values()], db, profiles, run.suppl_names) # Built once, the derivable dumps taken out once: the provenance page and # the CSV it links to must list the same dumps. + # The snapshots and the pipeline's derivable.json sit beside the + # database, as its paths do: read from the working directory, a run on + # another collection published this checkout's Wanted list. + collection = siteinputs.current().db.parent dumps = wanted_dumps( - build_report(db, load_provenance_snapshots(), needs=profile_needs(profiles, db), - root=siteinputs.current().db.parent), - load_derivable(), + build_report(db, load_provenance_snapshots(str(collection / "provenance")), + needs=profile_needs(profiles, db), root=collection), + load_derivable(str(collection / "derivable.json")), ) # The test each emulator page builds for itself: the parts a page is