Skip to content

Commit

Permalink
[macOS] Temporary pin the AzCopy version (actions#8979)
Browse files Browse the repository at this point in the history
* Update Software Report to support azcopy output

* [macOS] Temporary pin the AzCopy version

---------

Co-authored-by: Alexey Ayupov <“[email protected]”>
  • Loading branch information
Alexey-Ayupov and Alexey Ayupov authored Dec 11, 2023
1 parent 63f2cea commit 126c302
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion images/macos/scripts/build/install-azcopy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ arch=$(get_arch)
if [ "$arch" == "arm64" ]; then
brew_smart_install azcopy
else
archive_path=$(download_with_retry "https://aka.ms/downloadazcopy-v10-mac")
# Temporary pin 10.21.2 version of AzCopy until 10.22.0 is fixed
archive_path=$(download_with_retry "https://azcopyvnext.azureedge.net/releases/release-10.21.2-20231106/azcopy_darwin_amd64_10.21.2.zip")
unzip -qq "$archive_path" -d /tmp/azcopy
extract_path=$(echo /tmp/azcopy/azcopy*)
cp "$extract_path/azcopy" "/usr/local/bin/azcopy"
Expand Down
2 changes: 1 addition & 1 deletion images/macos/scripts/docs-gen/SoftwareReport.Common.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ function Get-Aria2Version {
}

function Get-AzcopyVersion {
$azcopyVersion = Run-Command "azcopy --version" | Take-Part -Part 2
$azcopyVersion = [string]$(Run-Command "azcopy --version") | Take-Part -Part 2
return $azcopyVersion
}

Expand Down

0 comments on commit 126c302

Please sign in to comment.