pulumi / upgrade-provider

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

Upgrade golang.org/x/mod to latest so it can parse the newer 1.21.1 Go versions with patch number #166

Closed thomas11 closed 1 year ago

thomas11 commented 1 year ago

Before this upgrade:

As part of upgrading hcloud, this would run:

go get github.com/hetznercloud/terraform-provider-hcloud@91a7b1a7c53ab673137f26171d2e47669edd70d7
go: upgraded go 1.21 => 1.21.1
[...]

go.mod now looks like this:

> head -3 provider/go.mod
module github.com/pulumi/pulumi-hcloud/provider

go 1.21.1

But x/mod 0.8 doesn't know these versions, so later:

- Upgrade Pulumi version in all places
  - X Get Pulumi SDK version: /Users/tkappler/pulumi/pulumi-hcloud/provider/go.mod: /Users/tkappler/pulumi/pulumi-hcloud/provider/go.mod:3: invalid go version '1.21.1': must match format 1.23

After this change, upgrade-provider works fine on hcloud.