pulumi / upgrade-provider

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

Prioritize a manually specified version #202

Closed iwahbe closed 1 year ago

iwahbe commented 1 year ago

Fixes #198

Before this PR, there was a strict ordering for version sources:

  1. From issues
  2. From --target-version
  3. From upstream releases.

This PR changes the ordering:

  1. From --target-version
  2. From issues
  3. From upstream releases.

It also adds a little more nuance on the version sources:

If --target-version is passed and --pulumi-infer-version is set, upgrade-provider will respect --target-version but will still annotate the created PR with issues to close as appropriate.

As enabled by https://github.com/pulumi/upgrade-provider/pull/201, there are tests for these changes.