pulumi / upgrade-provider

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

Correctly obtain upstream org name for provider #214

Closed guineveresaenger closed 10 months ago

guineveresaenger commented 10 months ago

Inferring the upstream provider org from the go mod requirements is not as robust as once believed. This pull request reads from provider/resources.go instead, looking for the value of GitHubOrg.

This change will unblock Stateless Provider Upgrades rollout, and it will additionally ensure that the fallback behavior for the "Get Expected Target / From Upstream Releases" works correctly for all providers.

A successful run using this commit is here: https://github.com/pulumi/pulumi-gitlab/actions/runs/7201244400/job/19616931040 - it is broken using upgrade-provider@main.

Fixes #213