[Windows|Ubuntu] Remove obsolete workarounds (#7431)

This commit is contained in:
Vasilii Polikarpov
2023-04-17 13:31:56 +02:00
committed by GitHub
parent 0f23104156
commit 5657dec7af
3 changed files with 3 additions and 13 deletions

View File

@@ -182,10 +182,7 @@ function Get-NvmVersion {
}
function Get-PackerVersion {
# Packer 1.7.1 has a bug and outputs version to stderr instead of stdout https://github.com/hashicorp/packer/issues/10855
$result = (Get-CommandResult "packer --version").Output
$packerVersion = [regex]::matches($result, "(\d+.){2}\d+").Value
return $packerVersion
return "Packer $(packer --version)"
}
function Get-PhantomJSVersion {

View File

@@ -31,11 +31,7 @@ EOF
# Uninstall unattended-upgrades
apt-get purge unattended-upgrades
# Need to limit arch for default apt repos due to
# https://github.com/actions/runner-images/issues/1961
sed -i'' -E 's/^deb http:\/\/(azure.archive|security).ubuntu.com/deb [arch=amd64,i386] http:\/\/\1.ubuntu.com/' /etc/apt/sources.list
echo 'APT sources limited to the actual architectures'
echo 'APT sources'
cat /etc/apt/sources.list
apt-get update

View File

@@ -142,10 +142,7 @@ function Get-OpenSSLVersion {
}
function Get-PackerVersion {
# Packer 1.7.1 has a bug and outputs version to stderr instead of stdout https://github.com/hashicorp/packer/issues/10855
($(cmd /c "packer --version 2>&1") | Out-String) -match "(?<version>(\d+.){2}\d+)" | Out-Null
$packerVersion = $Matches.Version
return $packerVersion
return "Packer $(packer --version)"
}
function Get-ParcelVersion {