Skip to content

Commit 75625c0

Browse files
committed
chore(dynamic plugins): fix scope references for rhdh-plugins: should be @red-hat-developer-hub/ not @red/hat-developer-hub-
Signed-off-by: Nick Boldt <[email protected]>
1 parent 211a235 commit 75625c0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/dynamic-plugins/rhdh-supported-plugins.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ for j in $jsons; do
121121
if [[ $Plugin != "@"* ]]; then # don't update janus-idp/backstage-plugins plugin names
122122
Plugin="$(echo "${Plugin}" | sed -r -e 's/([^-]+)-(.+)/\@\1\/\2/' \
123123
-e 's|janus/idp-|janus-idp/|' \
124+
-e 's|red/hat-developer-hub-|red-hat-developer-hub/|' \
124125
-e 's|backstage/community-|backstage-community/|' \
125126
-e 's|parfuemerie/douglas-|parfuemerie-douglas/|')"
126127
fi
@@ -179,8 +180,9 @@ for j in $jsons; do
179180
# curl -sSLko- https://registry.npmjs.org/@janus-idp%2fcli | jq -r '.versions[]|(.version+", "+.gitHead)' | sort -uV
180181
# for timestamp when tag is created
181182
# curl -sSLko- https://registry.npmjs.org/@janus-idp%2fcli | jq -r '.time' | grep -v -E "created|modified|{|}" | sort -uV
183+
# echo "Searching for ${Plugin/\//%2f} at npmjs.org..."
182184
allVersionsPublished="$(curl -sSLko- "https://registry.npmjs.org/${Plugin/\//%2f}" | jq -r '.versions[].version')"
183-
# echo $allVersionsPublished
185+
# echo "Found $allVersionsPublished"
184186
# clean out any pre-release versions
185187
latestXYRelease="$(echo "$allVersionsPublished" | grep -v -E -- "next|alpha|-" | grep -E "^${Version%.*}" | sort -uV | tail -1)"
186188
# echo "[DEBUG] Latest x.y version at https://registry.npmjs.org/${Plugin/\//%2f} : $latestXYRelease"

0 commit comments

Comments
 (0)