Merged PR 28427: [backport] Update PSResourceGet version for 1.0.1 release (#20652)

Update `PSResourceGet` version for `1.0.1` release (#20652)
This commit is contained in:
Travis Plunk
2023-11-10 18:14:15 +00:00
parent 49a417159c
commit 883fc73045
2 changed files with 4 additions and 9 deletions
+1 -1
View File
@@ -13,7 +13,7 @@
<ItemGroup>
<PackageReference Include="PowerShellGet" Version="2.2.5" />
<PackageReference Include="PackageManagement" Version="1.4.8.1" />
<PackageReference Include="Microsoft.PowerShell.PSResourceGet" Version="1.0.0" />
<PackageReference Include="Microsoft.PowerShell.PSResourceGet" Version="1.0.1" />
<PackageReference Include="Microsoft.PowerShell.Archive" Version="1.2.5" />
<PackageReference Include="PSReadLine" Version="2.3.4" />
<PackageReference Include="ThreadJob" Version="2.0.3" />
@@ -145,15 +145,10 @@ Describe "PowerShellGet - Module tests" -tags "Feature" {
It "Should install a module correctly to the required location with default CurrentUser scope" {
Install-Module -Name $TestModule -Repository $RepositoryName
$installedModuleInfo = Get-InstalledModule -Name $TestModule
$installedModuleInfo | Should -Not -BeNullOrEmpty
$installedModuleInfo.Name | Should -Be $TestModule
$installedModuleInfo.InstalledLocation.StartsWith($script:MyDocumentsModulesPath, [System.StringComparison]::OrdinalIgnoreCase) | Should -BeTrue
$module = Get-Module $TestModule -ListAvailable
$module = Get-Module -Name $TestModule -ListAvailable
$module | Should -Not -BeNullOrEmpty
$module.Name | Should -Be $TestModule
$module.ModuleBase | Should -Be $installedModuleInfo.InstalledLocation
$module.ModuleBase.StartsWith($script:MyDocumentsModulesPath, [System.StringComparison]::OrdinalIgnoreCase) | Should -BeTrue
}
AfterAll {