From 6de9cec3ff26620c6e11de0dc426310346d7786c Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 8 Jul 2026 12:11:02 +0200 Subject: feat: suppress continuation-URL prompt for manifest-listed pkgs; release v1.2.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On a primary version bump of a manifest-listed package, mkhint used to prompt interactively for each extra DOWNLOAD (continuation) URL, then Phase 2 (reconcile_bundle_deps) rewrote those same lines from the upstream manifest — a pointless double-touch (13 prompts for neovim). update_hint_file now detects a listed package and threads a skip_cont flag through update_checksums -> _process_download_var, which leaves the continuation URLs for the manifest reconcile and prints a short notice instead of prompting. Non-listed packages prompt exactly as before. Also fixes a set -e abort: the manifest-lookup guard was written as `pkg_has_manifest ... && _skip_cont=1`, whose false result (non-listed package) killed the run right after the backup. Rewritten as an if. This would have broken every non-listed --hintfile -V update. Verified live on a non-listed multiline package (exploitdb). Tests: T-BM18 now asserts the listed-pkg suppression, T-BM25 guards against over-suppression (non-listed still prompts); the read -p prompt is invisible under piped stdin, so both assert on the always-echoed "line N (current)" header. 184 passed. Also defers the multi-file split TODO with a rationale and revisit triggers (extract only the bundled-dep block when the time comes). Bump MKHINT_VERSION and man title to 1.2.4, rebuild mkhint.1.gz. Co-Authored-By: Claude Opus 4.8 --- CHANGELOG.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 8bad93d..798a049 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,22 @@ All notable changes to this project are documented here. The format is based on [Keep a Changelog](https://keepachangelog.com/), and this project adheres to [Semantic Versioning](https://semver.org/). +## [1.2.4] - 2026-07-08 + +### Changed +- On a primary version bump of a manifest-listed package, the interactive + continuation-URL prompt is now suppressed: those extra `DOWNLOAD` lines are + owned by Phase 2 (`reconcile_bundle_deps`), so hand-editing them during the + bump was a pointless double-touch. Non-listed packages still prompt as before. + Threaded via a `skip_cont` flag through `update_hint_file` → + `update_checksums` → `_process_download_var`. + +### Fixed +- `update_hint_file` no longer aborts (`set -e`) right after backing up when the + package has no bundle manifest: the manifest-lookup guard was written as + `pkg_has_manifest ... && x=1`, whose false result killed the run. This would + have broken every non-listed `--hintfile -V` update. + ## [1.2.3] - 2026-07-08 ### Fixed -- cgit v1.2.3