Skip to content

Commit 57e1823

Browse files
committed
fix(guide): skip installed tools with upstream_method=skip
Package-manager-only tools (ctags, entr, prename, sponge) are shown in the apt update notice but filtered from upgrade prompts since they can't be upgraded via the toolset.
1 parent fd095ba commit 57e1823

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

scripts/guide.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,14 @@ while read -r line; do
247247
continue
248248
fi
249249

250+
# Skip installed tools with upstream_method="skip" (package-manager-only tools)
251+
# These can't be tracked for upgrades, but we still show them if not installed
252+
upstream_method="$(json_field "$tool_name" upstream_method)"
253+
installed="$(json_field "$tool_name" installed)"
254+
if [ "$upstream_method" = "skip" ] && [ -n "$installed" ]; then
255+
continue
256+
fi
257+
250258
TOOLS_TO_PROCESS+=("$tool_name")
251259
fi
252260
done <<< "$AUDIT_OUTPUT"

0 commit comments

Comments
 (0)