Skip to content

Commit dc79e8c

Browse files
committed
fix: support both old and new boil CLI versions
1 parent 4076530 commit dc79e8c

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

stack_scanner/main.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,12 +394,20 @@ def main():
394394
use_conf_py = True
395395
else:
396396
print("Using boil based configuration")
397+
# boil >= 0.2.0 uses "image list", older versions use "show images"
397398
result = subprocess.run(
398399
["cargo", "boil", "image", "list"],
399400
cwd="docker-images",
400401
capture_output=True,
401402
text=True,
402403
)
404+
if result.returncode != 0:
405+
result = subprocess.run(
406+
["cargo", "boil", "show", "images"],
407+
cwd="docker-images",
408+
capture_output=True,
409+
text=True,
410+
)
403411
if result.returncode != 0:
404412
print("Failed to get product versions:", result.stderr)
405413
sys.exit(1)

0 commit comments

Comments
 (0)