1 parent 8d85266 commit 53fc898Copy full SHA for 53fc898
1 file changed
.github/actions/Build-PSModule/src/helpers/Build/Get-DependencyOrderedScriptFile.ps1
@@ -103,10 +103,12 @@ function Get-DependencyOrderedScriptFile {
103
$remainingNames = ($remainingPaths | ForEach-Object { [System.IO.Path]::GetFileName($_) }) -join ', '
104
$message = @(
105
"Cyclical class/enum dependencies detected in [$($sortedFiles[0].DirectoryName)]."
106
- "Build cannot continue with unresolved files: $remainingNames"
+ "Falling back to lexical order for unresolved files: $remainingNames"
107
) -join ' '
108
Write-Warning $message
109
- throw $message
+ $remainingPaths | Sort-Object | ForEach-Object {
110
+ $orderedPaths.Add($_)
111
+ }
112
}
113
114
return [System.IO.FileInfo[]]@($orderedPaths | ForEach-Object { $metadataByPath[$_].File })
0 commit comments