-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Checklist
- I have verified this is the correct repository for opening this issue.
- I have verified no other issues exist related to my request.
Is Your Feature Request Related To A Problem? Please describe.
The Package Validator currently flags package identifiers containing dots—such as those ending in .hook as invalid. This affects valid .hook packages that are used for lifecycle scripting in Chocolatey (e.g., pre-install, post-install, before modify, uninstall). These packages are supported by the Chocolatey CLI but are incorrectly flagged due to overly strict identifier validation.
Describe The Solution. Why is it needed?
Update the Package Validator to allow dots in package identifiers specifically for .hook packages. Chocolatey CLI has built-in support for .hook packages, and the validation logic should align with that support by explicitly permitting .hook as a valid suffix. This will prevent false positives and unnecessary flagging during package validation.
Additional Context
The issue stems from a rule that disallows dots in package IDs, which unintentionally affects .hook packages. Since .hook is a supported and intentional package type in Chocolatey, the validator should treat it as an exception. This update should be coordinated with the CPMR0061 rule update to ensure consistent handling across both rule sets.
Related Issues
┆Issue is synchronized with this Gitlab issue by Unito