11import type { CancellationToken , LogOutputChannel } from "vscode" ;
22import * as z from "zod/v4-mini" ;
33
4+ import { LOCALSTACK_DOCKER_IMAGE_NAME } from "../constants.ts" ;
5+
46import { checkIsAuthenticated } from "./authenticate.ts" ;
57import { checkIsProfileConfigured } from "./configure-aws.ts" ;
68import { exec } from "./exec.ts" ;
@@ -25,8 +27,6 @@ export async function checkSetupStatus(outputChannel: LogOutputChannel) {
2527 } ;
2628}
2729
28- const LOCALSTACK_DOCKER_IMAGE = "localstack/localstack-pro" ;
29-
3030export async function updateDockerImage (
3131 outputChannel : LogOutputChannel ,
3232 cancellationToken : CancellationToken ,
@@ -49,7 +49,7 @@ async function getDockerImageSemverVersion(
4949 outputChannel : LogOutputChannel ,
5050) : Promise < string | undefined > {
5151 try {
52- const { stdout } = await exec ( `docker inspect ${ LOCALSTACK_DOCKER_IMAGE } ` ) ;
52+ const { stdout } = await exec ( `docker inspect ${ LOCALSTACK_DOCKER_IMAGE_NAME } ` ) ;
5353 const data : unknown = JSON . parse ( stdout ) ;
5454 const parsed = InspectSchema . safeParse ( data ) ;
5555 if ( ! parsed . success ) {
@@ -77,7 +77,7 @@ async function pullDockerImage(
7777 cancellationToken : CancellationToken ,
7878) : Promise < void > {
7979 try {
80- await spawn ( "docker" , [ "pull" , LOCALSTACK_DOCKER_IMAGE ] , {
80+ await spawn ( "docker" , [ "pull" , LOCALSTACK_DOCKER_IMAGE_NAME ] , {
8181 outputChannel,
8282 outputLabel : "docker.pull" ,
8383 cancellationToken : cancellationToken ,
0 commit comments