What happened:
After upgrading to github.com/go-kratos/kratos/v3 v3.0.0, go mod tidy fails to resolve the contrib submodules. The contrib directories have their own go.mod files (making them separate Go modules), but no corresponding Git tags were created for them.
What you expected to happen:
go mod tidy should resolve contrib submodules at v3.0.0 without errors.
current:
replace (
github.com/go-kratos/kratos/contrib/encoding/json/v3 => github.com/go-kratos/kratos/contrib/encoding/json/v3 v3.0.0-20260621094049-2726761cdd77
github.com/go-kratos/kratos/contrib/otel/v3 => github.com/go-kratos/kratos/contrib/otel/v3 v3.0.0-20260621094049-2726761cdd77
github.com/go-kratos/kratos/contrib/registry/kubernetes/v3 => github.com/go-kratos/kratos/contrib/registry/kubernetes/v3 v3.0.0-20260621094049-2726761cdd77
)
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
git tag contrib/otel/v3/v3.0.0
git tag contrib/encoding/json/v3/v3.0.0
git tag contrib/registry/kubernetes/v3/v3.0.0
git push origin contrib/otel/v3/v3.0.0 contrib/encoding/json/v3/v3.0.0 contrib/registry/kubernetes/v3/v3.0.0
What happened:
After upgrading to github.com/go-kratos/kratos/v3 v3.0.0, go mod tidy fails to resolve the contrib submodules. The contrib directories have their own go.mod files (making them separate Go modules), but no corresponding Git tags were created for them.
What you expected to happen:
go mod tidy should resolve contrib submodules at v3.0.0 without errors.
current:
replace (
github.com/go-kratos/kratos/contrib/encoding/json/v3 => github.com/go-kratos/kratos/contrib/encoding/json/v3 v3.0.0-20260621094049-2726761cdd77
github.com/go-kratos/kratos/contrib/otel/v3 => github.com/go-kratos/kratos/contrib/otel/v3 v3.0.0-20260621094049-2726761cdd77
github.com/go-kratos/kratos/contrib/registry/kubernetes/v3 => github.com/go-kratos/kratos/contrib/registry/kubernetes/v3 v3.0.0-20260621094049-2726761cdd77
)
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
git tag contrib/otel/v3/v3.0.0
git tag contrib/encoding/json/v3/v3.0.0
git tag contrib/registry/kubernetes/v3/v3.0.0
git push origin contrib/otel/v3/v3.0.0 contrib/encoding/json/v3/v3.0.0 contrib/registry/kubernetes/v3/v3.0.0