moonrepo / proto

A pluggable multi-language version manager.
https://moonrepo.dev/proto
MIT License
631 stars 30 forks source link

Feature request: allow proto upgrade to accept a version #569

Closed W1M0R closed 1 month ago

W1M0R commented 1 month ago

When encountering issues introduced by an upgrade, it would be nice to be able to downgrade to a previous (or a specific version).

For example, if you have proto 0.39.2 and you want to downgrade, then you can do:

❯ proto upgrade --to 0.39.1

This would allow the following use cases:

  1. pinning proto to a specific version (not just the proto shim, but the entire cli)
  2. downgrading proto to a specific version after a breaking change
  3. allowing easier feedback of upgrade issues, by downgrading and then performing the upgrade again, but this time with trace logging enabled
W1M0R commented 1 month ago

Thanks again @milesj!