File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,27 +26,27 @@ phases:
26
26
- |
27
27
if [ "${TARGET_EXTENSION}" = "amazonq" ]; then
28
28
extension_name="amazonwebservices.amazon-q-vscode"
29
+ beta_version = "1.44.0"
29
30
elif [ "${TARGET_EXTENSION}" = "toolkit" ]; then
30
31
extension_name="amazonwebservices.aws-toolkit-vscode"
32
+ beta_version = "3.43.0"
31
33
else
32
34
echo checkmarketplace: "Unknown TARGET_EXTENSION: ${TARGET_EXTENSION}"
33
35
exit 1
34
36
fi
35
37
- |
36
38
if [ "$STAGE" != "prod" ]; then
37
39
echo "checkmarketplace: Non-production stage detected. Installing beta version 1.44.0."
38
- VERSION="1.44.0"
39
40
code_command="code-insiders"
40
- version_param="@${VERSION}"
41
41
else
42
42
code_command="code"
43
- version_param =""
43
+ beta_version =""
44
44
fi
45
45
# keep reinstalling the extension until the desired version is updated. Otherwise fail on codebuild timeout (1 hour).
46
46
- |
47
47
while true; do
48
48
$code_command --uninstall-extension "${extension_name}" --no-sandbox --user-data-dir /tmp/vscode
49
- $code_command --install-extension ${extension_name}${version_param } --no-sandbox --user-data-dir /tmp/vscode
49
+ $code_command --install-extension ${extension_name}${beta_version } --no-sandbox --user-data-dir /tmp/vscode
50
50
cur_version=$(code --list-extensions --show-versions --no-sandbox --user-data-dir /tmp/vscode | grep ${extension_name} | cut -d'@' -f2)
51
51
if [ "${cur_version}" = "${VERSION}" ]; then
52
52
echo "checkmarketplace: Extension ${extension_name} is updated to version '${cur_version}.'"
You can’t perform that action at this time.
0 commit comments