-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependencies from https://github.com/dotnet/arcade build 20240…
…108.6 (#39) [main] Update dependencies from dotnet/arcade
- Loading branch information
1 parent
062156d
commit 5694378
Showing
31 changed files
with
256 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@echo off | ||
powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0build.ps1""" %*" | ||
exit /b %ErrorLevel% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
deb http://deb.debian.org/debian-ports sid main | ||
deb http://deb.debian.org/debian sid main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. --> | ||
<Project> | ||
|
||
<Import Project="Sdk.props" Sdk="Microsoft.DotNet.Arcade.Sdk" /> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
[CmdletBinding(PositionalBinding=$False)] | ||
param( | ||
[Parameter(Mandatory=$true, Position=0)][string] $InputPath, | ||
[Parameter(Mandatory=$true)][string] $BinlogToolVersion, | ||
[Parameter(Mandatory=$false)][string] $DotnetPath, | ||
[Parameter(Mandatory=$false)][string] $PackageFeed = 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json', | ||
# File with strings to redact - separated by newlines. | ||
# For comments start the line with '# ' - such lines are ignored | ||
[Parameter(Mandatory=$false)][string] $TokensFilePath, | ||
[Parameter(ValueFromRemainingArguments=$true)][String[]]$TokensToRedact | ||
) | ||
|
||
try { | ||
. $PSScriptRoot\post-build-utils.ps1 | ||
|
||
$packageName = 'binlogtool' | ||
|
||
$dotnet = $DotnetPath | ||
|
||
if (!$dotnet) { | ||
$dotnetRoot = InitializeDotNetCli -install:$true | ||
$dotnet = "$dotnetRoot\dotnet.exe" | ||
} | ||
|
||
$toolList = & "$dotnet" tool list -g | ||
|
||
if ($toolList -like "*$packageName*") { | ||
& "$dotnet" tool uninstall $packageName -g | ||
} | ||
|
||
$toolPath = "$PSScriptRoot\..\..\..\.tools" | ||
$verbosity = 'minimal' | ||
|
||
New-Item -ItemType Directory -Force -Path $toolPath | ||
|
||
Push-Location -Path $toolPath | ||
|
||
try { | ||
Write-Host "Installing Binlog redactor CLI..." | ||
Write-Host "'$dotnet' new tool-manifest" | ||
& "$dotnet" new tool-manifest | ||
Write-Host "'$dotnet' tool install $packageName --local --add-source '$PackageFeed' -v $verbosity --version $BinlogToolVersion" | ||
& "$dotnet" tool install $packageName --local --add-source "$PackageFeed" -v $verbosity --version $BinlogToolVersion | ||
|
||
if (Test-Path $TokensFilePath) { | ||
Write-Host "Adding additional sensitive data for redaction from file: " $TokensFilePath | ||
$TokensToRedact += Get-Content -Path $TokensFilePath | Foreach {$_.Trim()} | Where { $_ -notmatch "^# " } | ||
} | ||
|
||
$optionalParams = [System.Collections.ArrayList]::new() | ||
|
||
Foreach ($p in $TokensToRedact) | ||
{ | ||
if($p -match '^\$\(.*\)$') | ||
{ | ||
Write-Host ("Ignoring token {0} as it is probably unexpanded AzDO variable" -f $p) | ||
} | ||
elseif($p) | ||
{ | ||
$optionalParams.Add("-p:" + $p) | Out-Null | ||
} | ||
} | ||
|
||
& $dotnet binlogtool redact --input:$InputPath --recurse --in-place ` | ||
@optionalParams | ||
|
||
if ($LastExitCode -ne 0) { | ||
Write-PipelineTelemetryError -Category 'Redactor' -Type 'warning' -Message "Problems using Redactor tool (exit code: $LastExitCode). But ignoring them now." | ||
} | ||
} | ||
finally { | ||
Pop-Location | ||
} | ||
|
||
Write-Host 'done.' | ||
} | ||
catch { | ||
Write-Host $_ | ||
Write-PipelineTelemetryError -Category 'Redactor' -Message "There was an error while trying to redact logs. Error: $_" | ||
ExitWithExitCode 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,4 +72,4 @@ catch { | |
Write-Host $_ | ||
Write-PipelineTelemetryError -Force -Category 'Sdl' -Message $_ | ||
ExitWithExitCode 1 | ||
} | ||
} |
Oops, something went wrong.