Update dependencies from https://github.com/dotnet/arcade build 20211116.10 (#12692)
[main] Update dependencies from dotnet/arcade - Coherency Updates: - Microsoft.SourceLink.GitHub: from 1.1.0-beta-21551-02 to 1.1.1-beta-21565-01 (parent: Microsoft.DotNet.Arcade.Sdk)
This commit is contained in:
parent
5f455c0652
commit
e208af2ba6
6 changed files with 83 additions and 64 deletions
|
@ -172,28 +172,28 @@
|
||||||
</Dependency>
|
</Dependency>
|
||||||
</ProductDependencies>
|
</ProductDependencies>
|
||||||
<ToolsetDependencies>
|
<ToolsetDependencies>
|
||||||
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="7.0.0-beta.21559.3">
|
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="7.0.0-beta.21566.10">
|
||||||
<Uri>https://github.com/dotnet/arcade</Uri>
|
<Uri>https://github.com/dotnet/arcade</Uri>
|
||||||
<Sha>fecf65bedcee9036b8ba9d8d7feef5413f294914</Sha>
|
<Sha>53cc1bc2e555aa7aea95884575d22e21d63708cf</Sha>
|
||||||
<SourceBuild RepoName="arcade" ManagedOnly="true" />
|
<SourceBuild RepoName="arcade" ManagedOnly="true" />
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.DotNet.CMake.Sdk" Version="7.0.0-beta.21559.3">
|
<Dependency Name="Microsoft.DotNet.CMake.Sdk" Version="7.0.0-beta.21566.10">
|
||||||
<Uri>https://github.com/dotnet/arcade</Uri>
|
<Uri>https://github.com/dotnet/arcade</Uri>
|
||||||
<Sha>fecf65bedcee9036b8ba9d8d7feef5413f294914</Sha>
|
<Sha>53cc1bc2e555aa7aea95884575d22e21d63708cf</Sha>
|
||||||
<SourceBuild RepoName="arcade" ManagedOnly="true" />
|
<SourceBuild RepoName="arcade" ManagedOnly="true" />
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.DotNet.Build.Tasks.Installers" Version="7.0.0-beta.21559.3">
|
<Dependency Name="Microsoft.DotNet.Build.Tasks.Installers" Version="7.0.0-beta.21566.10">
|
||||||
<Uri>https://github.com/dotnet/arcade</Uri>
|
<Uri>https://github.com/dotnet/arcade</Uri>
|
||||||
<Sha>fecf65bedcee9036b8ba9d8d7feef5413f294914</Sha>
|
<Sha>53cc1bc2e555aa7aea95884575d22e21d63708cf</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.SourceBuild.Intermediate.source-build-reference-packages" Version="6.0.0-alpha.1.21521.1">
|
<Dependency Name="Microsoft.SourceBuild.Intermediate.source-build-reference-packages" Version="6.0.0-alpha.1.21521.1">
|
||||||
<Uri>https://github.com/dotnet/source-build-reference-packages</Uri>
|
<Uri>https://github.com/dotnet/source-build-reference-packages</Uri>
|
||||||
<Sha>fc184172bf8144f7c91a7bc0226b7d90c5821576</Sha>
|
<Sha>fc184172bf8144f7c91a7bc0226b7d90c5821576</Sha>
|
||||||
<SourceBuildTarball RepoName="source-build-reference-packages" ManagedOnly="true" />
|
<SourceBuildTarball RepoName="source-build-reference-packages" ManagedOnly="true" />
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.SourceLink.GitHub" Version="1.1.0-beta-21551-02" CoherentParentDependency="Microsoft.DotNet.Arcade.Sdk">
|
<Dependency Name="Microsoft.SourceLink.GitHub" Version="1.1.1-beta-21565-01" CoherentParentDependency="Microsoft.DotNet.Arcade.Sdk">
|
||||||
<Uri>https://github.com/dotnet/sourcelink</Uri>
|
<Uri>https://github.com/dotnet/sourcelink</Uri>
|
||||||
<Sha>02a36d32650b2dbeabb3f5fb318461557c89014d</Sha>
|
<Sha>4f4f58596278e9ef72d68d7ea80b634e552c9c8f</Sha>
|
||||||
<SourceBuild RepoName="sourcelink" ManagedOnly="true" />
|
<SourceBuild RepoName="sourcelink" ManagedOnly="true" />
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.DotNet.XliffTasks" Version="1.0.0-beta.21518.1" CoherentParentDependency="Microsoft.DotNet.Arcade.Sdk">
|
<Dependency Name="Microsoft.DotNet.XliffTasks" Version="1.0.0-beta.21518.1" CoherentParentDependency="Microsoft.DotNet.Arcade.Sdk">
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<!-- Dependency from https://github.com/dotnet/arcade -->
|
<!-- Dependency from https://github.com/dotnet/arcade -->
|
||||||
<MicrosoftDotNetBuildTasksInstallersPackageVersion>7.0.0-beta.21559.3</MicrosoftDotNetBuildTasksInstallersPackageVersion>
|
<MicrosoftDotNetBuildTasksInstallersPackageVersion>7.0.0-beta.21566.10</MicrosoftDotNetBuildTasksInstallersPackageVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<!-- Dependency from https://github.com/dotnet/winforms -->
|
<!-- Dependency from https://github.com/dotnet/winforms -->
|
||||||
|
|
|
@ -124,7 +124,7 @@ try {
|
||||||
Exec-BlockVerbosely {
|
Exec-BlockVerbosely {
|
||||||
& $(Join-Path $PSScriptRoot 'run-sdl.ps1') `
|
& $(Join-Path $PSScriptRoot 'run-sdl.ps1') `
|
||||||
-GuardianCliLocation $guardianCliLocation `
|
-GuardianCliLocation $guardianCliLocation `
|
||||||
-WorkingDirectory $workingDirectory `
|
-WorkingDirectory $SourceDirectory `
|
||||||
-UpdateBaseline $UpdateBaseline `
|
-UpdateBaseline $UpdateBaseline `
|
||||||
-GdnFolder $gdnFolder
|
-GdnFolder $gdnFolder
|
||||||
}
|
}
|
||||||
|
|
|
@ -301,31 +301,44 @@ function InstallDotNet([string] $dotnetRoot,
|
||||||
if ($skipNonVersionedFiles) { $installParameters.SkipNonVersionedFiles = $skipNonVersionedFiles }
|
if ($skipNonVersionedFiles) { $installParameters.SkipNonVersionedFiles = $skipNonVersionedFiles }
|
||||||
if ($noPath) { $installParameters.NoPath = $True }
|
if ($noPath) { $installParameters.NoPath = $True }
|
||||||
|
|
||||||
try {
|
$variations = @()
|
||||||
& $installScript @installParameters
|
$variations += @($installParameters)
|
||||||
}
|
|
||||||
catch {
|
|
||||||
if ($runtimeSourceFeed -or $runtimeSourceFeedKey) {
|
|
||||||
Write-Host "Failed to install dotnet from public location. Trying from '$runtimeSourceFeed'"
|
|
||||||
if ($runtimeSourceFeed) { $installParameters.AzureFeed = $runtimeSourceFeed }
|
|
||||||
|
|
||||||
if ($runtimeSourceFeedKey) {
|
$dotnetBuilds = $installParameters.Clone()
|
||||||
$decodedBytes = [System.Convert]::FromBase64String($runtimeSourceFeedKey)
|
$dotnetbuilds.AzureFeed = "https://dotnetbuilds.azureedge.net/public"
|
||||||
$decodedString = [System.Text.Encoding]::UTF8.GetString($decodedBytes)
|
$variations += @($dotnetBuilds)
|
||||||
$installParameters.FeedCredential = $decodedString
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
if ($runtimeSourceFeed) {
|
||||||
& $installScript @installParameters
|
$runtimeSource = $installParameters.Clone()
|
||||||
}
|
$runtimeSource.AzureFeed = $runtimeSourceFeed
|
||||||
catch {
|
if ($runtimeSourceFeedKey) {
|
||||||
Write-PipelineTelemetryError -Category 'InitializeToolset' -Message "Failed to install dotnet from custom location '$runtimeSourceFeed'."
|
$decodedBytes = [System.Convert]::FromBase64String($runtimeSourceFeedKey)
|
||||||
ExitWithExitCode 1
|
$decodedString = [System.Text.Encoding]::UTF8.GetString($decodedBytes)
|
||||||
}
|
$runtimeSource.FeedCredential = $decodedString
|
||||||
} else {
|
|
||||||
Write-PipelineTelemetryError -Category 'InitializeToolset' -Message "Failed to install dotnet from public location."
|
|
||||||
ExitWithExitCode 1
|
|
||||||
}
|
}
|
||||||
|
$variations += @($runtimeSource)
|
||||||
|
}
|
||||||
|
|
||||||
|
$installSuccess = $false
|
||||||
|
foreach ($variation in $variations) {
|
||||||
|
if ($variation | Get-Member AzureFeed) {
|
||||||
|
$location = $variation.AzureFeed
|
||||||
|
} else {
|
||||||
|
$location = "public location";
|
||||||
|
}
|
||||||
|
Write-Host "Attempting to install dotnet from $location."
|
||||||
|
try {
|
||||||
|
& $installScript @variation
|
||||||
|
$installSuccess = $true
|
||||||
|
break
|
||||||
|
}
|
||||||
|
catch {
|
||||||
|
Write-Host "Failed to install dotnet from $location."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (-not $installSuccess) {
|
||||||
|
Write-PipelineTelemetryError -Category 'InitializeToolset' -Message "Failed to install dotnet from any of the specified locations."
|
||||||
|
ExitWithExitCode 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -887,7 +900,7 @@ function Try-LogClientIpAddress()
|
||||||
Write-Host "Attempting to log this client's IP for Azure Package feed telemetry purposes"
|
Write-Host "Attempting to log this client's IP for Azure Package feed telemetry purposes"
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
$result = Invoke-WebRequest -Uri "http://co1.msedge.net/fdv2/diagnostics.aspx" -UseBasicParsing
|
$result = Invoke-WebRequest -Uri "http://co1r5a.msedge.net/fdv2/diagnostics.aspx" -UseBasicParsing
|
||||||
$lines = $result.Content.Split([Environment]::NewLine)
|
$lines = $result.Content.Split([Environment]::NewLine)
|
||||||
$socketIp = $lines | Select-String -Pattern "^Socket IP:.*"
|
$socketIp = $lines | Select-String -Pattern "^Socket IP:.*"
|
||||||
Write-Host $socketIp
|
Write-Host $socketIp
|
||||||
|
|
|
@ -188,28 +188,29 @@ function InstallDotNet {
|
||||||
GetDotNetInstallScript "$root"
|
GetDotNetInstallScript "$root"
|
||||||
local install_script=$_GetDotNetInstallScript
|
local install_script=$_GetDotNetInstallScript
|
||||||
|
|
||||||
local archArg=''
|
local installParameters=(--version $version --install-dir "$root")
|
||||||
|
|
||||||
if [[ -n "${3:-}" ]] && [ "$3" != 'unset' ]; then
|
if [[ -n "${3:-}" ]] && [ "$3" != 'unset' ]; then
|
||||||
archArg="--architecture $3"
|
installParameters+=(--architecture $3)
|
||||||
fi
|
fi
|
||||||
local runtimeArg=''
|
|
||||||
if [[ -n "${4:-}" ]] && [ "$4" != 'sdk' ]; then
|
if [[ -n "${4:-}" ]] && [ "$4" != 'sdk' ]; then
|
||||||
runtimeArg="--runtime $4"
|
installParameters+=(--runtime $4)
|
||||||
fi
|
fi
|
||||||
local skipNonVersionedFilesArg=""
|
|
||||||
if [[ "$#" -ge "5" ]] && [[ "$5" != 'false' ]]; then
|
if [[ "$#" -ge "5" ]] && [[ "$5" != 'false' ]]; then
|
||||||
skipNonVersionedFilesArg="--skip-non-versioned-files"
|
installParameters+=(--skip-non-versioned-files)
|
||||||
fi
|
fi
|
||||||
bash "$install_script" --version $version --install-dir "$root" $archArg $runtimeArg $skipNonVersionedFilesArg || {
|
|
||||||
local exit_code=$?
|
|
||||||
echo "Failed to install dotnet SDK from public location (exit code '$exit_code')."
|
|
||||||
|
|
||||||
local runtimeSourceFeed=''
|
local variations=() # list of variable names with parameter arrays in them
|
||||||
if [[ -n "${6:-}" ]]; then
|
|
||||||
runtimeSourceFeed="--azure-feed $6"
|
|
||||||
fi
|
|
||||||
|
|
||||||
local runtimeSourceFeedKey=''
|
local public_location=("${installParameters[@]}")
|
||||||
|
variations+=(public_location)
|
||||||
|
|
||||||
|
local dotnetbuilds=("${installParameters[@]}" --azure-feed "https://dotnetbuilds.azureedge.net/public")
|
||||||
|
variations+=(dotnetbuilds)
|
||||||
|
|
||||||
|
if [[ -n "${6:-}" ]]; then
|
||||||
|
variations+=(private_feed)
|
||||||
|
local private_feed=("${installParameters[@]}" --azure-feed $6)
|
||||||
if [[ -n "${7:-}" ]]; then
|
if [[ -n "${7:-}" ]]; then
|
||||||
# The 'base64' binary on alpine uses '-d' and doesn't support '--decode'
|
# The 'base64' binary on alpine uses '-d' and doesn't support '--decode'
|
||||||
# '-d'. To work around this, do a simple detection and switch the parameter
|
# '-d'. To work around this, do a simple detection and switch the parameter
|
||||||
|
@ -219,22 +220,27 @@ function InstallDotNet {
|
||||||
decodeArg="-d"
|
decodeArg="-d"
|
||||||
fi
|
fi
|
||||||
decodedFeedKey=`echo $7 | base64 $decodeArg`
|
decodedFeedKey=`echo $7 | base64 $decodeArg`
|
||||||
runtimeSourceFeedKey="--feed-credential $decodedFeedKey"
|
private_feed+=(--feed-credential $decodedFeedKey)
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
local installSuccess=0
|
||||||
|
for variationName in "${variations[@]}"; do
|
||||||
|
local name="$variationName[@]"
|
||||||
|
local variation=("${!name}")
|
||||||
|
echo "Attempting to install dotnet from $variationName."
|
||||||
|
bash "$install_script" "${variation[@]}" && installSuccess=1
|
||||||
|
if [[ "$installSuccess" -eq 1 ]]; then
|
||||||
|
break
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n "$runtimeSourceFeed" || -n "$runtimeSourceFeedKey" ]]; then
|
echo "Failed to install dotnet from $variationName."
|
||||||
bash "$install_script" --version $version --install-dir "$root" $archArg $runtimeArg $skipNonVersionedFilesArg $runtimeSourceFeed $runtimeSourceFeedKey || {
|
done
|
||||||
local exit_code=$?
|
|
||||||
Write-PipelineTelemetryError -category 'InitializeToolset' "Failed to install dotnet SDK from custom location '$runtimeSourceFeed' (exit code '$exit_code')."
|
if [[ "$installSuccess" -eq 0 ]]; then
|
||||||
ExitWithExitCode $exit_code
|
Write-PipelineTelemetryError -category 'InitializeToolset' "Failed to install dotnet SDK from any of the specified locations."
|
||||||
}
|
ExitWithExitCode 1
|
||||||
else
|
fi
|
||||||
if [[ $exit_code != 0 ]]; then
|
|
||||||
Write-PipelineTelemetryError -category 'InitializeToolset' "Failed to install dotnet SDK from public location (exit code '$exit_code')."
|
|
||||||
fi
|
|
||||||
ExitWithExitCode $exit_code
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function with_retries {
|
function with_retries {
|
||||||
|
@ -402,7 +408,7 @@ function StopProcesses {
|
||||||
function TryLogClientIpAddress () {
|
function TryLogClientIpAddress () {
|
||||||
echo 'Attempting to log this client''s IP for Azure Package feed telemetry purposes'
|
echo 'Attempting to log this client''s IP for Azure Package feed telemetry purposes'
|
||||||
if command -v curl > /dev/null; then
|
if command -v curl > /dev/null; then
|
||||||
curl -s 'http://co1.msedge.net/fdv2/diagnostics.aspx' | grep ' IP: ' || true
|
curl -s 'http://co1r5a.msedge.net/fdv2/diagnostics.aspx' | grep ' IP: ' || true
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
"cmake": "3.16.4"
|
"cmake": "3.16.4"
|
||||||
},
|
},
|
||||||
"msbuild-sdks": {
|
"msbuild-sdks": {
|
||||||
"Microsoft.DotNet.Arcade.Sdk": "7.0.0-beta.21559.3",
|
"Microsoft.DotNet.Arcade.Sdk": "7.0.0-beta.21566.10",
|
||||||
"Microsoft.DotNet.CMake.Sdk": "7.0.0-beta.21559.3"
|
"Microsoft.DotNet.CMake.Sdk": "7.0.0-beta.21566.10"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue