aboutsummaryrefslogtreecommitdiffstats
path: root/mkhint
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-07-07 19:19:47 +0200
committerDanilo M. <danix@danix.xyz>2026-07-07 19:19:47 +0200
commit38955ce02ad3897f6304c4bdc58977f32b89f5f5 (patch)
treeb7da9598b099f6f7fb89be383bf3803f5ed7945f /mkhint
parent3444391f3142771db9ef0218250545f32c202c8c (diff)
downloadmkhintfile-38955ce02ad3897f6304c4bdc58977f32b89f5f5.tar.gz
mkhintfile-38955ce02ad3897f6304c4bdc58977f32b89f5f5.zip
fix: primary manifest entry no longer flagged as missing in reconcile FYI
The bundled-dep FYI iterated all manifest URLs but only extra (index>=1) hint URLs were tracked as matched, so the manifest's primary entry was always reported as 'not in hint'. Seed the primary's manifest match (without reconciling index 0) so the FYI is accurate. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'mkhint')
-rwxr-xr-xmkhint6
1 files changed, 6 insertions, 0 deletions
diff --git a/mkhint b/mkhint
index 48a11af..c0ae79a 100755
--- a/mkhint
+++ b/mkhint
@@ -572,6 +572,12 @@ reconcile_bundle_deps() {
local -a new_urls=("${urls[@]}")
local -a changed_idx=() changed_from=() changed_to=()
local i m
+
+ # The primary hint URL (index 0) is never reconciled, but its manifest
+ # counterpart must count as "matched" so the FYI doesn't always flag it.
+ local _pm; _pm=$(match_dep_url "${urls[0]}" "$mlist") || _pm=""
+ [[ -n "$_pm" ]] && matched_manifest["$_pm"]=1
+
for (( i=1; i<${#urls[@]}; i++ )); do
m=$(match_dep_url "${urls[$i]}" "$mlist") || m=""
if [[ -z "$m" ]]; then