Merge pull request #11 from loanDepot/tdrake/fixSetVersionForInitialCommit

More setVersion fixes
This commit is contained in:
Kevin Marquette
2018-08-27 18:00:35 -07:00
committed by GitHub

View File

@@ -48,7 +48,7 @@ task SetVersion {
} }
"Checking for published version" "Checking for published version"
$publishedModule = Find-Module -Name $ModuleName -ErrorAction 'SilentlyContinue' | $publishedModule = Find-Module -Name $ModuleName -ErrorAction 'Ignore' |
Sort-Object -Property {[version]$_.Version} -Descending | Sort-Object -Property {[version]$_.Version} -Descending |
Select -First 1 Select -First 1
@@ -64,7 +64,10 @@ task SetVersion {
[System.Collections.Generic.HashSet[string]] $publishedInterface = GetModulePublicInterfaceMap -Path (Join-Path $downloadFolder $ModuleName) [System.Collections.Generic.HashSet[string]] $publishedInterface = GetModulePublicInterfaceMap -Path (Join-Path $downloadFolder $ModuleName)
[System.Collections.Generic.HashSet[string]] $buildInterface = GetModulePublicInterfaceMap -Path $ManifestPath [System.Collections.Generic.HashSet[string]] $buildInterface = GetModulePublicInterfaceMap -Path $ManifestPath
if ($null -eq $publishedInterface)
{
$publishedInterface = [System.Collections.Generic.HashSet[string]]::new()
}
if( -not $publishedInterface.IsSubsetOf($buildInterface)) if( -not $publishedInterface.IsSubsetOf($buildInterface))
{ {