DopplerHQ / cli

The official CLI for interacting with your Doppler secrets and configuration.
https://docs.doppler.com
Apache License 2.0
214 stars 43 forks source link

Support updating CLI installed via winget #416

Closed Piccirello closed 11 months ago

Piccirello commented 1 year ago

Tested auto updates and doppler update command on macOS, Windows, and Git bash (MINGW64). Also verified CLI throws appropriate errors when installed via Scoop.

Closes ENG-6426

Piccirello commented 12 months ago

Now that CLI v3.64.0 is live, we have two versions available via winget, so I was update to test the update functionality using a local build. It worked swimmingly! The only question is whether updates will work once the CLI process calling winget upgrade is the same one that's being replaced by the new version. This is the issue that resulted in us having to roll back update support for scoop (#119). The only way to know for sure is to ship this and test in prod.

Piccirello commented 12 months ago

@nmanoogian I pushed up some changes to fix a bug in the doppler update command. I've also added e2e tests to ensure this functionality doesn't break again.