chocolatey / choco

Chocolatey - the package manager for Windows
https://chocolatey.org
Other
10.04k stars 890 forks source link

(#3426) Add deprecation notice for unpackself #3434

Closed gep13 closed 2 months ago

gep13 commented 2 months ago

Description Of Changes

This commit adds deprecation notices around the unpackself command, in order to make people aware that this command in going away in v3.0.0.

Motivation and Context

Based on internal conversations, while the unpackself command is currently being used as part of the overall build process, it is not something that is "required". So, rather than leave this command in place, let's deprecate it, and then remove the command completely in the next major version of Chocolatey CLI.

With this command removed, it will be necessary to change the build process to sign the PowerShell files earlier in the build process than they currently are, but it shouldn't impact on the end result at all.

Testing

  1. Run choco -h
  2. Ensure that the deprecation notice can be seen in the section that lists out all the commands
  3. Run choco unpackself -h
  4. Ensure that the deprecation notice can be seen
  5. Run choco unpackself
  6. Ensure that the deprecation notice can be seen

Operating Systems Testing

Change Types Made

Change Checklist

Related Issue

Fixes #3426