From cfc30cc8e67d0e55923f592794ad834f84054211 Mon Sep 17 00:00:00 2001 From: Lakhan Samani Date: Fri, 24 Jul 2026 12:48:57 +0530 Subject: [PATCH] fix!: add required /v2 module path suffix 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. --- examples/deactivate_account.go | 2 +- examples/forgot_password.go | 2 +- examples/get_meta_data.go | 2 +- examples/get_profile.go | 2 +- examples/get_session.go | 2 +- examples/login.go | 2 +- examples/logout.go | 2 +- examples/magic_link_login.go | 2 +- examples/manual/main.go | 2 +- examples/resend_otp.go | 2 +- examples/resend_verify_email.go | 2 +- examples/reset_password.go | 2 +- examples/revoke_token.go | 2 +- examples/signup.go | 2 +- examples/update_profile.go | 2 +- examples/validate_jwt_token.go | 2 +- examples/validate_session.go | 2 +- examples/verify_email.go | 2 +- examples/verify_otp.go | 2 +- go.mod | 2 +- test/admin_test.go | 2 +- test/authorizer_test.go | 2 +- test/get_token_unit_test.go | 2 +- test/main.go | 2 +- test/protocol_test.go | 2 +- 25 files changed, 25 insertions(+), 25 deletions(-) diff --git a/examples/deactivate_account.go b/examples/deactivate_account.go index 57a769c..002e437 100644 --- a/examples/deactivate_account.go +++ b/examples/deactivate_account.go @@ -3,7 +3,7 @@ package examples import ( "fmt" - "github.com/authorizerdev/authorizer-go" + "github.com/authorizerdev/authorizer-go/v2" ) // DeactivateAccountExample demonstrates how to use DeactivateAccount function of authorizer sdk diff --git a/examples/forgot_password.go b/examples/forgot_password.go index 7ce04b8..f6362b3 100644 --- a/examples/forgot_password.go +++ b/examples/forgot_password.go @@ -3,7 +3,7 @@ package examples import ( "fmt" - "github.com/authorizerdev/authorizer-go" + "github.com/authorizerdev/authorizer-go/v2" ) // ForgotPasswordInputExample demonstrates how to use ForgotPassword function of authorizer skd diff --git a/examples/get_meta_data.go b/examples/get_meta_data.go index 90a199b..ceccacc 100644 --- a/examples/get_meta_data.go +++ b/examples/get_meta_data.go @@ -3,7 +3,7 @@ package examples import ( "fmt" - "github.com/authorizerdev/authorizer-go" + "github.com/authorizerdev/authorizer-go/v2" ) // GetMetaDataExample demonstrates how to use GetMetaData function of authorizer sdk diff --git a/examples/get_profile.go b/examples/get_profile.go index ef012cf..8ab0024 100644 --- a/examples/get_profile.go +++ b/examples/get_profile.go @@ -3,7 +3,7 @@ package examples import ( "fmt" - "github.com/authorizerdev/authorizer-go" + "github.com/authorizerdev/authorizer-go/v2" ) // GetProfileExample demonstrates how to use GetProfile function of authorizer sdk diff --git a/examples/get_session.go b/examples/get_session.go index 538e15f..c07f1ad 100644 --- a/examples/get_session.go +++ b/examples/get_session.go @@ -3,7 +3,7 @@ package examples import ( "fmt" - "github.com/authorizerdev/authorizer-go" + "github.com/authorizerdev/authorizer-go/v2" ) // GetSessionExample demonstrates how to use GetSession function of authorizer sdk diff --git a/examples/login.go b/examples/login.go index 768803a..0ec74f7 100644 --- a/examples/login.go +++ b/examples/login.go @@ -3,7 +3,7 @@ package examples import ( "fmt" - "github.com/authorizerdev/authorizer-go" + "github.com/authorizerdev/authorizer-go/v2" ) // LoginExample demonstrates how to use Login function of authorizer sdk diff --git a/examples/logout.go b/examples/logout.go index 7947e98..10ede15 100644 --- a/examples/logout.go +++ b/examples/logout.go @@ -3,7 +3,7 @@ package examples import ( "fmt" - "github.com/authorizerdev/authorizer-go" + "github.com/authorizerdev/authorizer-go/v2" ) // LogoutExample demonstrates how to use Logout function of authorizer sdk diff --git a/examples/magic_link_login.go b/examples/magic_link_login.go index 9815bde..8c85c9c 100644 --- a/examples/magic_link_login.go +++ b/examples/magic_link_login.go @@ -3,7 +3,7 @@ package examples import ( "fmt" - "github.com/authorizerdev/authorizer-go" + "github.com/authorizerdev/authorizer-go/v2" ) // MagicLinkLoginExample demonstrates how to use MagicLinkLogin function of authorizer sdk diff --git a/examples/manual/main.go b/examples/manual/main.go index 2624f7f..fc66176 100644 --- a/examples/manual/main.go +++ b/examples/manual/main.go @@ -21,7 +21,7 @@ import ( "os" "time" - "github.com/authorizerdev/authorizer-go" + "github.com/authorizerdev/authorizer-go/v2" authorizerv1 "github.com/authorizerdev/authorizer-proto-go/authorizer/v1" ) diff --git a/examples/resend_otp.go b/examples/resend_otp.go index f6827b9..7972cd2 100644 --- a/examples/resend_otp.go +++ b/examples/resend_otp.go @@ -3,7 +3,7 @@ package examples import ( "fmt" - "github.com/authorizerdev/authorizer-go" + "github.com/authorizerdev/authorizer-go/v2" ) // ResendOTPExample demonstrates how to use ResendOTP function of authorizer sdk diff --git a/examples/resend_verify_email.go b/examples/resend_verify_email.go index ae6ff72..74683c5 100644 --- a/examples/resend_verify_email.go +++ b/examples/resend_verify_email.go @@ -3,7 +3,7 @@ package examples import ( "fmt" - "github.com/authorizerdev/authorizer-go" + "github.com/authorizerdev/authorizer-go/v2" ) // ResendVerifyEmailExample demonstrates how to use ResendVerifyEmail function of authorizer sdk diff --git a/examples/reset_password.go b/examples/reset_password.go index 125d9f1..3d1c345 100644 --- a/examples/reset_password.go +++ b/examples/reset_password.go @@ -3,7 +3,7 @@ package examples import ( "fmt" - "github.com/authorizerdev/authorizer-go" + "github.com/authorizerdev/authorizer-go/v2" ) // ResetPasswordExample demonstrates how to use ResetPassword function of authorizer sdk diff --git a/examples/revoke_token.go b/examples/revoke_token.go index 5a465b3..e503270 100644 --- a/examples/revoke_token.go +++ b/examples/revoke_token.go @@ -3,7 +3,7 @@ package examples import ( "fmt" - "github.com/authorizerdev/authorizer-go" + "github.com/authorizerdev/authorizer-go/v2" ) // RevokeTokenExample demonstrates how to use RevokeToken function of authorizer sdk diff --git a/examples/signup.go b/examples/signup.go index b63a31a..6b76b51 100644 --- a/examples/signup.go +++ b/examples/signup.go @@ -3,7 +3,7 @@ package examples import ( "fmt" - "github.com/authorizerdev/authorizer-go" + "github.com/authorizerdev/authorizer-go/v2" ) // SignUpExample demonstrates how to use SignUp function of authorizer sdk diff --git a/examples/update_profile.go b/examples/update_profile.go index 9fdb3a1..de8ad8c 100644 --- a/examples/update_profile.go +++ b/examples/update_profile.go @@ -3,7 +3,7 @@ package examples import ( "fmt" - "github.com/authorizerdev/authorizer-go" + "github.com/authorizerdev/authorizer-go/v2" ) // UpdateProfileExample demonstrates how to use UpdateProfile function of authorizer sdk diff --git a/examples/validate_jwt_token.go b/examples/validate_jwt_token.go index 12c3539..7911e7c 100644 --- a/examples/validate_jwt_token.go +++ b/examples/validate_jwt_token.go @@ -3,7 +3,7 @@ package examples import ( "fmt" - "github.com/authorizerdev/authorizer-go" + "github.com/authorizerdev/authorizer-go/v2" ) // ValidateJWTTokenExample demonstrates how to use ValidateJWTToken function of authorizer sdk diff --git a/examples/validate_session.go b/examples/validate_session.go index 12ffd82..09df889 100644 --- a/examples/validate_session.go +++ b/examples/validate_session.go @@ -3,7 +3,7 @@ package examples import ( "fmt" - "github.com/authorizerdev/authorizer-go" + "github.com/authorizerdev/authorizer-go/v2" ) // ValidateSessionExample demonstrates how to use ValidateSession function of authorizer sdk diff --git a/examples/verify_email.go b/examples/verify_email.go index d6fbe3a..01ee1d5 100644 --- a/examples/verify_email.go +++ b/examples/verify_email.go @@ -3,7 +3,7 @@ package examples import ( "fmt" - "github.com/authorizerdev/authorizer-go" + "github.com/authorizerdev/authorizer-go/v2" ) // VerifyEmailExample demonstrates how to use VerifyEmail function of authorizer sdk diff --git a/examples/verify_otp.go b/examples/verify_otp.go index 45b7325..7e6e368 100644 --- a/examples/verify_otp.go +++ b/examples/verify_otp.go @@ -3,7 +3,7 @@ package examples import ( "fmt" - "github.com/authorizerdev/authorizer-go" + "github.com/authorizerdev/authorizer-go/v2" ) // VerifyOTPExample demonstrates how to use VerifyOTP function of authorizer sdk diff --git a/go.mod b/go.mod index 2bdf449..ff03fe8 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/authorizerdev/authorizer-go +module github.com/authorizerdev/authorizer-go/v2 go 1.25.5 diff --git a/test/admin_test.go b/test/admin_test.go index bcaacbf..6807e15 100644 --- a/test/admin_test.go +++ b/test/admin_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - "github.com/authorizerdev/authorizer-go" + "github.com/authorizerdev/authorizer-go/v2" authorizerv1 "github.com/authorizerdev/authorizer-proto-go/authorizer/v1" ) diff --git a/test/authorizer_test.go b/test/authorizer_test.go index 17d6587..0b676fb 100644 --- a/test/authorizer_test.go +++ b/test/authorizer_test.go @@ -7,7 +7,7 @@ import ( "strings" "testing" - "github.com/authorizerdev/authorizer-go" + "github.com/authorizerdev/authorizer-go/v2" ) // Integration-test target. Overridable via env so the same suite runs against a diff --git a/test/get_token_unit_test.go b/test/get_token_unit_test.go index d2bea8c..446c334 100644 --- a/test/get_token_unit_test.go +++ b/test/get_token_unit_test.go @@ -7,7 +7,7 @@ import ( "strings" "testing" - "github.com/authorizerdev/authorizer-go" + "github.com/authorizerdev/authorizer-go/v2" authorizerv1 "github.com/authorizerdev/authorizer-proto-go/authorizer/v1" ) diff --git a/test/main.go b/test/main.go index 1f5850f..a2073b7 100644 --- a/test/main.go +++ b/test/main.go @@ -1,6 +1,6 @@ package main -import "github.com/authorizerdev/authorizer-go/examples" +import "github.com/authorizerdev/authorizer-go/v2/examples" func main() { // examples.LoginExample() diff --git a/test/protocol_test.go b/test/protocol_test.go index 57622ff..ccc2418 100644 --- a/test/protocol_test.go +++ b/test/protocol_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - "github.com/authorizerdev/authorizer-go" + "github.com/authorizerdev/authorizer-go/v2" ) // protocols is the set of wire transports the public client supports. Each