-
Notifications
You must be signed in to change notification settings - Fork 912
Make PackageName default to ChocolateyPackageName #1716
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
Comments
Sounds like a good idea. Have added this to up for grabs. |
I am a new contributor to this project and was wondering if I could be assigned this issue. |
I'm going to look into this as a first issue. Please let me know if this is no longer relevant or desired. |
Would this change not also apply to |
Set default value of packageName to $env:chocolateyPackageName for Install-ChocolateyZipPackage and Get-ChocolateyUnzip. This is usually the value used as default in install scripts, so this can reduce the number of necessary parameters specified.
Yes I think so! Thank you for your Pull Request. |
Added this default value for several other scripts that use |
Yes, that would be a breaking change. Although it sounds nice to have optional parameters after all the required ones, it’s not worth it to break packages, especially corporate internal ones (we are able to update the community feed ourselves). Note that we already have some of such “wrong parameters”, like |
Following helpers have a parameter
-PackageName
:Install-ChocolateyZipPackage
Get-ChocolateyUnzip
When they are used in install scripts (which is likely to be the case), this parameter seems redundant since we already have
$env:ChocolateyPackageName
. It would be great to let it default to$env:ChocolateyPackageName
when this environment variable is available.The text was updated successfully, but these errors were encountered: