Skip to content

Commit 3c1a02c

Browse files
🪲 [Fix]: Issue where module is no longer available later in the wf (#33)
## Description - No longer uninstall the module, just remove it from the session. ## Type of change <!-- Use the check-boxes [x] on the options that are relevant. --> - [ ] 📖 [Docs] - [x] 🪲 [Fix] - [ ] 🩹 [Patch] - [ ] ⚠️ [Security fix] - [ ] 🚀 [Feature] - [ ] 🌟 [Breaking change] ## Checklist <!-- Use the check-boxes [x] on the options that are relevant. --> - [x I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas
1 parent dc59ba7 commit 3c1a02c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/helpers/Build/Import-PSModule.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
Write-Verbose "Manifest file path: [$($manifestFile.FullName)]" -Verbose
3333
Get-Module -Name $ModuleName -ListAvailable | Remove-Module -Force -Verbose:$false
34-
Get-InstalledPSResource | Where-Object Name -EQ $ModuleName | Uninstall-PSResource -SkipDependencyCheck -Verbose:$false
34+
# Get-InstalledPSResource | Where-Object Name -EQ $ModuleName | Uninstall-PSResource -SkipDependencyCheck -Verbose:$false
3535
Resolve-PSModuleDependencies -ManifestFilePath $manifestFile
3636
Import-Module -Name $ModuleName -RequiredVersion '999.0.0'
3737

0 commit comments

Comments
 (0)