Before this PR, there was a strict ordering for version sources:
From issues
From --target-version
From upstream releases.
This PR changes the ordering:
From --target-version
From issues
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.
Fixes #198
Before this PR, there was a strict ordering for version sources:
This PR changes the ordering:
--target-version
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.