From 2f36af5003d5ac789222709f22d0b935759f6613 Mon Sep 17 00:00:00 2001 From: Martin G Date: Mon, 4 Apr 2022 05:29:17 -0400 Subject: [PATCH] Fixed Composer "empty" version (#5334) Although https://github.com/martingem/virtual-environments/commit/137c29497d4b02e00551c45bc94e469bc90f12c0 fixed the previous issue, they've done something: https://github.com/composer/composer/commit/03b7882ac231d19e9373ed33a8e71d7bb5b280c1 Returns "Composer 2.3.3" as expected. --- images/win/scripts/SoftwareReport/SoftwareReport.Common.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/win/scripts/SoftwareReport/SoftwareReport.Common.psm1 b/images/win/scripts/SoftwareReport/SoftwareReport.Common.psm1 index 4960269d..a4379c0b 100644 --- a/images/win/scripts/SoftwareReport/SoftwareReport.Common.psm1 +++ b/images/win/scripts/SoftwareReport/SoftwareReport.Common.psm1 @@ -158,7 +158,7 @@ function Get-CondaVersion { } function Get-ComposerVersion { - composer --version | Take-Part -Part 0,1 + composer --version | Take-Part -Part 0,2 } function Get-NugetVersion {