diff options
| author | Danilo M. <danix@danix.xyz> | 2026-07-07 19:19:47 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-07-07 19:19:47 +0200 |
| commit | 38955ce02ad3897f6304c4bdc58977f32b89f5f5 (patch) | |
| tree | b7da9598b099f6f7fb89be383bf3803f5ed7945f /tests | |
| parent | 3444391f3142771db9ef0218250545f32c202c8c (diff) | |
| download | mkhintfile-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 'tests')
| -rwxr-xr-x | tests/mkhint_test.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/mkhint_test.sh b/tests/mkhint_test.sh index 9ec0037..8e1eed4 100755 --- a/tests/mkhint_test.sh +++ b/tests/mkhint_test.sh @@ -1737,7 +1737,12 @@ WASMTIME_URL https://github.com/bytecodealliance/wasmtime/archive/v36.0.6.tar.gz WASMTIME_SHA256 c EOF out=$(run_mkhint -C --force bmnvim < <(printf 'n\n') 2>&1) || true +# FYI block is the lines between "manifest has N deps not in hint:" and the +# next blank line. Only wasmtime (a true extra) should be listed; the +# primary's manifest counterpart (neovim) must not be flagged as missing. +fyi_block=$(echo "$out" | awk '/deps not in hint:/{f=1; next} f && /^$/{f=0} f') echo "$out" | grep -q 'deps not in hint:' && echo "$out" | grep -qi 'wasmtime' \ + && ! echo "$fyi_block" | grep -qx 'neovim' \ && { echo " PASS: FYI list printed"; (( PASS++ )); } \ || { echo " FAIL: FYI. out=$out"; (( FAIL++ )); ERRORS+=("T-BM16"); } rm -f "$MOCK_BASE/manifest_fixture" "$MOCK_BASE/bundle-manifests" "$MOCK_HINT/bmnvim.hint" |
