aboutsummaryrefslogtreecommitdiffstats
path: root/mkhint
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-07-07 19:27:47 +0200
committerDanilo M. <danix@danix.xyz>2026-07-07 19:27:47 +0200
commit79e4425a07ed3b57199eefb65b525485448c31f5 (patch)
treeaaf1340a27026a2d4538abb85f6fd0427f2d2f0e /mkhint
parent38955ce02ad3897f6304c4bdc58977f32b89f5f5 (diff)
downloadmkhintfile-79e4425a07ed3b57199eefb65b525485448c31f5.tar.gz
mkhintfile-79e4425a07ed3b57199eefb65b525485448c31f5.zip
feat: --hintfile -V reconciles bundled deps for listed packages
Parity with --check: the update path runs Phase 2 (report + apply) after the primary bump. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'mkhint')
-rwxr-xr-xmkhint19
1 files changed, 19 insertions, 0 deletions
diff --git a/mkhint b/mkhint
index c0ae79a..f1e9131 100755
--- a/mkhint
+++ b/mkhint
@@ -1446,6 +1446,25 @@ main() {
if [[ "${check_nvchecker_take:-0}" -eq 1 ]]; then
nvtake -c "$NVCHECKER_CONFIG" "$HINT_FILE" >&2 || true
fi
+
+ load_bundle_manifests
+ local _bm_pkg="${HINT_FILE%.hint}"
+ _bm_pkg="${_bm_pkg##*/}"
+ if pkg_has_manifest "$_bm_pkg"; then
+ local _bm_hint="${HINT_DIR%/}/${_bm_pkg}.hint"
+ local _bm_cur; _bm_cur=$(grep '^VERSION=' "$_bm_hint" | sed 's/VERSION="//;s/"$//')
+ local _bm_url; _bm_url=$(manifest_url_for "$_bm_pkg" "$_bm_cur")
+ echo ""
+ echo "Bundled-dep reconcile: $_bm_pkg (manifest @ $_bm_cur)"
+ reconcile_bundle_deps "$_bm_pkg" "$_bm_hint" "$_bm_url" report || true
+ local _bm_ans
+ read -r -p "Apply bundled-dep updates for $_bm_pkg? [Y/n] " _bm_ans
+ _bm_ans="${_bm_ans:-Y}"
+ if [[ "$_bm_ans" =~ ^[Yy]$ ]]; then
+ reconcile_bundle_deps "$_bm_pkg" "$_bm_hint" "$_bm_url" apply || true
+ fi
+ fi
+
prompt_slackrepo "$HINT_FILE"
;;
new)