From db676f65e84687b15605e25d46ec4065ea4ddc84 Mon Sep 17 00:00:00 2001 From: Dibir Magomedsaygitov <61747324+dibir-magomedsaygitov@users.noreply.github.com> Date: Fri, 4 Dec 2020 10:21:32 +0300 Subject: [PATCH] [macOS] Fix version output for vcpkg (#2141) * change version output for vcpkg * minor fix * change commit id to short * minor change --- images/macos/software-report/SoftwareReport.Common.psm1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/images/macos/software-report/SoftwareReport.Common.psm1 b/images/macos/software-report/SoftwareReport.Common.psm1 index 6bea6251..449135ca 100644 --- a/images/macos/software-report/SoftwareReport.Common.psm1 +++ b/images/macos/software-report/SoftwareReport.Common.psm1 @@ -51,7 +51,8 @@ function Get-RustupVersion { function Get-VcpkgVersion { $vcpkgVersion = Run-Command "vcpkg version" | Select-Object -First 1 | Take-Part -Part 5 | Take-Part -Part 0 -Delimiter "-" - return "Vcpkg ${vcpkgVersion}" + $commitId = git -C "/usr/local/share/vcpkg" rev-parse --short HEAD + return "Vcpkg $vcpkgVersion (build from master <$commitId>)" } function Get-GccVersion {