pulumi / upgrade-provider

A tool to automate provider upgrades on your local machine
6 stars 1 forks source link

Fail fast on --kind empty #239

Closed t0yv0 closed 8 months ago

t0yv0 commented 8 months ago

Before the change upgrade provider --kind="" would proceed with "No changes required" success message. I believe it is better to fail fast.

VenelinMartinov commented 8 months ago

I'm confused why it does not error here: https://github.com/pulumi/upgrade-provider/blob/d846fbbe9314cf08280f499bbc3fd98291e34e52/main.go#L143

Edit: oh, it's a slice and we range over it...