Skip to content

fix!: add required /v2 module path suffix - #24

Merged
lakhansamani merged 1 commit into
mainfrom
fix/go-mod-v2-module-path
Jul 24, 2026
Merged

fix!: add required /v2 module path suffix#24
lakhansamani merged 1 commit into
mainfrom
fix/go-mod-v2-module-path

Conversation

@lakhansamani

Copy link
Copy Markdown
Contributor

Summary

This module has been tagged v2.x since v2.0.0, but go.mod never added the /v2 suffix Go's module versioning rules require for major version 2+. Confirmed via the module proxy: no v2.x tag has ever actually resolved for a consumer running a plain go get github.com/authorizerdev/authorizer-go@v2.x.x — it fails with "module contains a go.mod file, so module path must match major version".

What changed

  • go.mod: module github.com/authorizerdev/authorizer-gomodule github.com/authorizerdev/authorizer-go/v2
  • All internal self-references (25 files under test/, examples/) updated to the new import path.

Breaking, but not newly breaking anyone with a working build — v2.x import lines were never resolvable in the first place, so this makes v2.x installable for the first time rather than changing behavior for anyone currently depending on it successfully.

Test plan

  • go build/go vet/gofmt clean
  • Full go test ./... — including the live integration suite across graphql/rest/grpc, public+admin — passes against a locally built authorizer:localmain image

This module has been tagged v2.x since v2.0.0, but go.mod never added
the /v2 suffix Go's module versioning rules require for major version
2+. The practical effect: no v2.x tag has ever been resolvable via the
standard toolchain - `go get github.com/authorizerdev/authorizer-go@v2.x.x`
fails with "module contains a go.mod file, so module path must match
major version". Confirmed against the module proxy before this fix.

BREAKING CHANGE: import path changes from
github.com/authorizerdev/authorizer-go to
github.com/authorizerdev/authorizer-go/v2. Existing v2.x import lines
were never actually resolvable, so this doesn't newly break anyone who
had a working build - it makes v2.x installable for the first time.

Verified: go build/vet/gofmt clean; full go test ./... (including the
live integration suite across graphql/rest/grpc, public+admin) passes
against a locally built authorizer:localmain image.
@lakhansamani
lakhansamani merged commit faa0a0c into main Jul 24, 2026
1 check 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.

1 participant