pulumi / upgrade-provider

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

`gitRefsOf` overwrites tags when the SHA is tagged multiple times #150

Closed guineveresaenger closed 1 year ago

guineveresaenger commented 1 year ago

What happened?

During upgrade-provider --kind=pf, I got the following output:

✓ Repo kind: patched ✓ Planning Plugin Framework Update: Up to date at 0.15.2

This is not accurate - latest is at 0.16.0.

Expected Behavior

Upgrade to v0.16.0, which is the latest pf tag.

Steps to reproduce

Check out Akamai and try to run a bridge upgrade with kind==pf

Output of pulumi about

n/a

Additional context

This is happening here when a git sha has multiple tags. The keys in gitRepoRefs are not unique, and so tags can get overwritten.

Contributing

Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).