Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added capability to remove existing conflicting module versions to PSGalleryModule #108

Closed
wants to merge 7 commits into from

Conversation

aromano2
Copy link

@aromano2 aromano2 commented Dec 6, 2019

Resolves #107
Added a 'Clean' switch to PSGalleryModule. When specified via parameters:
@{
PSDependOptions = @{
Target = 'C:\temp'
}

Pester = @{
    DependencyType = 'PSGalleryModule'
    Name = 'Pester'
    Parameters = @{ Clean = $true }
    Version = '4.8.0'
    AddToPath = 'C:\temp'
}

}

the script will clean out any existing versions of the same module, located within any of the paths defined in $env:PSModulePath. Had to refactor a good amount of the code to accommodate this feature.

@aromano2
Copy link
Author

aromano2 commented Dec 10, 2019

bump @RamblingCookieMonster

@aromano2 aromano2 closed this Mar 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add capability to remove existing conflicting module versions to PSGallery
1 participant