fix(siren/ext): fill list of installed extensions cache correctly

This commit is contained in:
2025-05-29 21:24:49 +01:00
parent 45abede579
commit 20e7cf32ff

6
siren
View File

@@ -310,7 +310,7 @@ _INSTALLED_EXTENSIONS=""
installed_extensions() {
local editor_cmd="$1"
# Build cache if not already built
# Populate the cache if it's not already populated.
if [[ -z "${_INSTALLED_EXTENSIONS}" ]]; then
_INSTALLED_EXTENSIONS="$("${editor_cmd}" --list-extensions --show-versions)"
fi
@@ -483,6 +483,10 @@ do_install_extensions() {
exit 1
fi
# Warn the installed extensions cache before we start processing the lock
# file.
installed_extensions "${editor_cmd}"
# Process each extension
while IFS= read -r line; do
if [[ -n "${line}" && ! "${line}" =~ ^[[:space:]]*# ]]; then