Skip to content
This repository was archived by the owner on Jun 14, 2024. It is now read-only.

NugetPackage Warning message incorrect #31

Open
PlagueHO opened this issue Sep 25, 2016 · 1 comment
Open

NugetPackage Warning message incorrect #31

PlagueHO opened this issue Sep 25, 2016 · 1 comment

Comments

@PlagueHO
Copy link

PlagueHO commented Sep 25, 2016

See:
https://github.com/PowerShell/PackageManagementProviderResource/blob/master/DSCResources/MSFT_NugetPackage/MSFT_NugetPackage.psm1#L414

The order of the parameters are incorrect so a message like this can be recevied:
You are installing the module 'Git-Trusted-Certificates' from an untrusted repository 'Trusted'. Your current InstallationPolicy is
'https://nexus.contoso.com/nexus/service/local/nuget/nuget-hosted/'. If you trust the repository, set the policy to "Trusted". "Untrusted" otherwise.

Line 414 should be:
Write-Warning -Message ($localizedData.InstallationPolicyWarning -f $Name, $packageFound.Source, $InstallationPolicy)

@brywang-msft
Copy link

This issue was moved to OneGet/oneget#254

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants