Skip to content
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

Fix variable names for $remainingPackages #23867

Merged
merged 18 commits into from
Sep 8, 2021
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions eng/scripts/Language-Settings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ function PackageDependenciesResolve($artifactNamePrefix, $packageDirectory) {
-f $downloadedPomPath `
dependency:copy-dependencies `
-P '!azure-mgmt-sdk-test-jar' `
-DoutputDirectory="$packageDirectory"
-DoutputDirectory="$packageDirectory" 2>&1

if ($LASTEXITCODE) {
LogWarning "Could not resolve dependencies for: $pomArtifactName"
Expand Down Expand Up @@ -461,11 +461,11 @@ function UpdateDocsMsPackages($DocConfigFile, $Mode, $DocsMetadata) {
$remainingPackages = @()
if ($Mode -eq 'preview') {
$remainingPackages = $DocsMetadata.Where({
$_.VersionPreview.Trim() -and !$outputPackagesHash.ContainsKey("$($package.packageGroupId):$($package.packageArtifactId)")
$_.VersionPreview.Trim() -and !$outputPackagesHash.ContainsKey("$($_.GroupId):$($_.Package)")
})
} else {
$remainingPackages = $DocsMetadata.Where({
$_.VersionGA.Trim() -and !$outputPackagesHash.ContainsKey("$($package.packageGroupId):$($package.packageArtifactId)")
$_.VersionGA.Trim() -and !$outputPackagesHash.ContainsKey("$($_.GroupId):$($_.Package)")
})
}

Expand All @@ -487,7 +487,7 @@ function UpdateDocsMsPackages($DocConfigFile, $Mode, $DocsMetadata) {

Write-Host "Add new package from metadata: ${packageGroupId}:$packageName"
$package = [ordered]@{
packageArtifactId = $packageArtifactId
packageArtifactId = $packageName
packageGroupId = $packageGroupId
packageVersion = $packageVersion
packageDownloadUrl = "https://repo1.maven.org/maven2"
Expand All @@ -509,7 +509,7 @@ function UpdateDocsMsPackages($DocConfigFile, $Mode, $DocsMetadata) {

$outputJson = ConvertTo-Json $packageConfig -Depth 100
Set-Content -Path $DocConfigFile -Value $outputJson
Write-Host "Onboarding configuration written to: $DocConfigFile"
Write-Host "Onboarding configuration ($Mode) written to: $DocConfigFile"
danieljurek marked this conversation as resolved.
Show resolved Hide resolved
}

# function is used to filter packages to submit to API view tool
Expand Down