Skip to content

fix(go): update module path to v5#523

Merged
dglsparsons merged 1 commit into
vercel:mainfrom
omercnet:fix/go-module-v5
Jun 29, 2026
Merged

fix(go): update module path to v5#523
dglsparsons merged 1 commit into
vercel:mainfrom
omercnet:fix/go-module-v5

Conversation

@omercnet

Copy link
Copy Markdown
Contributor

Fixes #522.

What

Bumps the Go module path from …/v4 to …/v5 to match the published v5.x tags, as required by Go semantic import versioning.

  • go.mod module path …/v4…/v5
  • All 134 internal .go import statements …/v4…/v5
  • .goreleaser.yml ldflags version-injection path …/v4/client.version…/v5/client.version

136 files changed, mechanical path-only edit — no dependency or logic changes (go.sum untouched).

Why

The whole v5.x line (v5.0.0v5.3.0) shipped with go.mod still declaring …/v4, so the module is uninstallable at its own major version:

$ go install github.com/vercel/terraform-provider-vercel/v5@v5.3.0
go: ... module path must match major version ("github.com/vercel/terraform-provider-vercel/v4")

This breaks downstream Go consumers — most importantly the Pulumi Terraform bridge / pulumi-vercel, the same consumer behind the Pulumi-compat work in #430.

Verification

  • go build ./... — exit 0
  • go vet ./... — exit 0
  • gofmt -l . — empty
  • go mod verify — all modules verified
  • git grep terraform-provider-vercel/v4 — 0 matches remaining

A gentle ask 🙏

This is the third time the module path has lagged a major release — I previously fixed v3→v4 in #429, and it was v1→v2 in #227. Each miss breaks the Pulumi bridge until it's patched. Could we please keep the /vN suffix tidy as part of the release process — ideally a CI guard that asserts the go.mod major suffix matches the tag — so this doesn't recur on v6? Happy to send that guard as a follow-up if useful.

The v5.x release line was tagged without bumping the Go module path in
go.mod, which still declared .../v4. This breaks `go get` for the v5
module path and downstream consumers (notably the Pulumi Terraform
bridge). Update the module path and all import references from /v4 to /v5.

Follow-up to vercel#429 (v3 -> v4) and vercel#227 (v1 -> v2).
@ecklf

ecklf commented Jun 24, 2026

Copy link
Copy Markdown
Member

The tests are failing :ohno:

@dglsparsons dglsparsons merged commit d386bc0 into vercel:main Jun 29, 2026
7 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] v5.x released without bumping Go module path in go.mod (still declares /v4)

3 participants