-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[release/6.0] Update dependencies from dotnet/arcade #57630
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
dotnet-maestro
merged 1 commit into
release/6.0
from
darc-release/6.0-1aea8dbf-c8ce-4901-82ca-1b11dd5877cb
Aug 31, 2024
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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,121 @@ | ||
| <# | ||
| .SYNOPSIS | ||
| Verifies that Microsoft NuGet packages have proper metadata. | ||
| .DESCRIPTION | ||
| Downloads a verification tool and runs metadata validation on the provided NuGet packages. This script writes an | ||
| error if any of the provided packages fail validation. All arguments provided to this PowerShell script that do not | ||
| match PowerShell parameters are passed on to the verification tool downloaded during the execution of this script. | ||
| .PARAMETER NuGetExePath | ||
| The path to the nuget.exe binary to use. If not provided, nuget.exe will be downloaded into the -DownloadPath | ||
| directory. | ||
| .PARAMETER PackageSource | ||
| The package source to use to download the verification tool. If not provided, nuget.org will be used. | ||
| .PARAMETER DownloadPath | ||
| The directory path to download the verification tool and nuget.exe to. If not provided, | ||
| %TEMP%\NuGet.VerifyNuGetPackage will be used. | ||
| .PARAMETER args | ||
| Arguments that will be passed to the verification tool. | ||
| .EXAMPLE | ||
| PS> .\verify.ps1 *.nupkg | ||
| Verifies the metadata of all .nupkg files in the currect working directory. | ||
| .EXAMPLE | ||
| PS> .\verify.ps1 --help | ||
| Displays the help text of the downloaded verifiction tool. | ||
| .LINK | ||
| https://github.com/NuGet/NuGetGallery/blob/master/src/VerifyMicrosoftPackage/README.md | ||
| #> | ||
|
|
||
| # This script was copied from https://github.com/NuGet/NuGetGallery/blob/3e25ad135146676bcab0050a516939d9958bfa5d/src/VerifyMicrosoftPackage/verify.ps1 | ||
|
|
||
| [CmdletBinding(PositionalBinding = $false)] | ||
| param( | ||
| [string]$NuGetExePath, | ||
| [string]$PackageSource = "https://api.nuget.org/v3/index.json", | ||
| [string]$DownloadPath, | ||
| [Parameter(ValueFromRemainingArguments = $true)] | ||
| [string[]]$args | ||
| ) | ||
|
|
||
| # The URL to download nuget.exe. | ||
| $nugetExeUrl = "https://dist.nuget.org/win-x86-commandline/v4.9.4/nuget.exe" | ||
|
|
||
| # The package ID of the verification tool. | ||
| $packageId = "NuGet.VerifyMicrosoftPackage" | ||
|
|
||
| # The location that nuget.exe and the verification tool will be downloaded to. | ||
| if (!$DownloadPath) { | ||
| $DownloadPath = (Join-Path $env:TEMP "NuGet.VerifyMicrosoftPackage") | ||
| } | ||
|
|
||
| $fence = New-Object -TypeName string -ArgumentList '=', 80 | ||
|
|
||
| # Create the download directory, if it doesn't already exist. | ||
| if (!(Test-Path $DownloadPath)) { | ||
| New-Item -ItemType Directory $DownloadPath | Out-Null | ||
| } | ||
| Write-Host "Using download path: $DownloadPath" | ||
|
|
||
| if ($NuGetExePath) { | ||
| $nuget = $NuGetExePath | ||
| } else { | ||
| $downloadedNuGetExe = Join-Path $DownloadPath "nuget.exe" | ||
|
|
||
| # Download nuget.exe, if it doesn't already exist. | ||
| if (!(Test-Path $downloadedNuGetExe)) { | ||
| Write-Host "Downloading nuget.exe from $nugetExeUrl..." | ||
| $ProgressPreference = 'SilentlyContinue' | ||
| try { | ||
| Invoke-WebRequest $nugetExeUrl -OutFile $downloadedNuGetExe | ||
| $ProgressPreference = 'Continue' | ||
| } catch { | ||
| $ProgressPreference = 'Continue' | ||
| Write-Error $_ | ||
| Write-Error "nuget.exe failed to download." | ||
| exit | ||
| } | ||
| } | ||
|
|
||
| $nuget = $downloadedNuGetExe | ||
| } | ||
|
|
||
| Write-Host "Using nuget.exe path: $nuget" | ||
| Write-Host " " | ||
|
|
||
| # Download the latest version of the verification tool. | ||
| Write-Host "Downloading the latest version of $packageId from $packageSource..." | ||
| Write-Host $fence | ||
| & $nuget install $packageId ` | ||
| -Prerelease ` | ||
| -OutputDirectory $DownloadPath ` | ||
| -Source $PackageSource | ||
| Write-Host $fence | ||
| Write-Host " " | ||
|
|
||
| if ($LASTEXITCODE -ne 0) { | ||
| Write-Error "nuget.exe failed to fetch the verify tool." | ||
| exit | ||
| } | ||
|
|
||
| # Find the most recently downloaded tool | ||
| Write-Host "Finding the most recently downloaded verification tool." | ||
| $verifyProbePath = Join-Path $DownloadPath "$packageId.*" | ||
| $verifyPath = Get-ChildItem -Path $verifyProbePath -Directory ` | ||
| | Sort-Object -Property LastWriteTime -Descending ` | ||
| | Select-Object -First 1 | ||
| $verify = Join-Path $verifyPath "tools\NuGet.VerifyMicrosoftPackage.exe" | ||
| Write-Host "Using verification tool: $verify" | ||
| Write-Host " " | ||
|
|
||
| # Execute the verification tool. | ||
| Write-Host "Executing the verify tool..." | ||
| Write-Host $fence | ||
| & $verify $args | ||
| Write-Host $fence | ||
| Write-Host " " | ||
|
|
||
| # Respond to the exit code. | ||
| if ($LASTEXITCODE -ne 0) { | ||
| Write-Error "The verify tool found some problems." | ||
| } else { | ||
| Write-Output "The verify tool succeeded." | ||
| } |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AndriySvyryd do you know if that is expected?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty sure it won't break anything but it's weird enough for me to notice it. 6 new feeds.