Skip to content

Commit

Permalink
Skip invalid package modules (#17444)
Browse files Browse the repository at this point in the history
For things where we find perfdata or other go.mod files
without the other required properties we should just skip
them in processing
  • Loading branch information
weshaggard authored Apr 4, 2022
1 parent cb4b183 commit 7855d60
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions eng/scripts/Language-Settings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ function Get-go-PackageInfoFromPackageFile($pkg, $workingDirectory)
$releaseNotes = ""
$packageProperties = Get-GoModuleProperties $pkg.Directory

# We have some cases when processing service directories that non-shipping projects like perfdata
# we just want to exclude them as opposed to returning a property with invalid data.
if (!$packageProperties) {
return $null
}

if ($packageProperties.ChangeLogPath -and $packageProperties.Version)
{
$releaseNotes = Get-ChangeLogEntryAsString -ChangeLogLocation $packageProperties.ChangeLogPath `
Expand Down

0 comments on commit 7855d60

Please sign in to comment.