This feature enhances IPM's stability and dependency management by implementing a mechanism to lock installed modules. This ensures production or critical modules remain fixed at a specific version, protecting them from core IPM modification commands.
New Commands: pin and unpin
pin Command
Marks a specific, installed module as pinned to prevent future modification operations.
Usage Examples:
zpm:USER>pin web-fslog
Module web-fslog is now pinned
zpm:USER>pin web-fslog
ERROR! Module web-fslog already pinned
zpm:USER>pin test-package
ERROR! Module test-package not found
unpin Command
Removes the pinned status from an installed module, allowing future IPM operations (install, update, remove) to proceed normally.
Usage Examples:
zpm:USER>unpin web-fslog
Module web-fslog is now unpinned
zpm:USER>unpin x-textpacakge
ERROR! Unpin the unpinned module x-textpacakge