mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
[Windows|Ubuntu] Remove obsolete workarounds (#7431)
This commit is contained in:
committed by
GitHub
parent
0f23104156
commit
5657dec7af
@@ -182,10 +182,7 @@ function Get-NvmVersion {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function Get-PackerVersion {
|
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
|
return "Packer $(packer --version)"
|
||||||
$result = (Get-CommandResult "packer --version").Output
|
|
||||||
$packerVersion = [regex]::matches($result, "(\d+.){2}\d+").Value
|
|
||||||
return $packerVersion
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function Get-PhantomJSVersion {
|
function Get-PhantomJSVersion {
|
||||||
|
|||||||
@@ -31,11 +31,7 @@ EOF
|
|||||||
# Uninstall unattended-upgrades
|
# Uninstall unattended-upgrades
|
||||||
apt-get purge unattended-upgrades
|
apt-get purge unattended-upgrades
|
||||||
|
|
||||||
# Need to limit arch for default apt repos due to
|
echo 'APT sources'
|
||||||
# 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'
|
|
||||||
cat /etc/apt/sources.list
|
cat /etc/apt/sources.list
|
||||||
|
|
||||||
apt-get update
|
apt-get update
|
||||||
|
|||||||
@@ -142,10 +142,7 @@ function Get-OpenSSLVersion {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function Get-PackerVersion {
|
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
|
return "Packer $(packer --version)"
|
||||||
($(cmd /c "packer --version 2>&1") | Out-String) -match "(?<version>(\d+.){2}\d+)" | Out-Null
|
|
||||||
$packerVersion = $Matches.Version
|
|
||||||
return $packerVersion
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function Get-ParcelVersion {
|
function Get-ParcelVersion {
|
||||||
|
|||||||
Reference in New Issue
Block a user