-
Notifications
You must be signed in to change notification settings - Fork 189
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
Can't set AllowClobber on PackageManagement DSC via AdditionalParameters property #327
Comments
I get the same error with Additional Paraemter ExcludeVersion:
|
I came across this issue today at work also. I added support for switches as a work around but it would be great to get this into the next release (#337) If anyone has any suggestions or issue please let me know. I have done some testing but I couldn't see any documented process around updating DSCResources. |
I ran across this too. I propose that it could be resolved by replacing https://github.com/OneGet/oneget/blob/WIP/src/Microsoft.PackageManagement.DscResources/MSFT_PackageManagement/MSFT_PackageManagement.psm1#L106 with
|
The fix for this actually got merged into the PowerShellGet module here: https://github.com/PowerShell/PowerShellGet/pull/347/files I'm not sure that this has been released to PSGallery yet but when it does using this module should be used as it will have ongoing support |
not fixed yet? :( i'm plan to use PackageManagement DSC resource to CD our nupkg'd software but now its useless now without additional switches usage ability |
This is still an issue. Force, AllowClobber ... these need to be supported or at least Switch parameters like those handled as part of the generic AdditionalParameters property as proposed earlier:
|
It is also a problem when trying to ensure a PowerShell module is at least at a specific minimum version (but allowing a newer version to be present on the machine, without forcibly installing an older version, which is what using |
And using the |
… switch or bool Syntax: AdditionalParameters = @{ '[switch]InstallUpdate' = 'True' } Fixes OneGet#327.
… switch or bool Syntax: AdditionalParameters = @{ '[switch]InstallUpdate' = 'True' } Fixes OneGet#327.
Can't set AllowClobber on PackageManagement DSC via AdditionalParameters property
getting following error from the DSC operations event log
Cannot convert 'System.String' to the type 'System.Management.Automation.SwitchParameter'
exact the same as this report:
smurawski/dsc_contrib#1
The text was updated successfully, but these errors were encountered: