ory / sdk

The place where ORY's SDKs are being auto-generated
Apache License 2.0
139 stars 86 forks source link

[Go] Ory client v1.0.0-alpha.0+ not importable #233

Closed cvvs closed 1 year ago

cvvs commented 1 year ago

Preflight checklist

Describe the bug

Attempting go get github.com/ory/client-go@v1.0.1 fails.

The generated client seems to have an incorrect module name: https://github.com/ory/client-go/blob/87619d96b2984af97f0910b7dd1eb92e76f79943/go.mod#L1, and this appears to have been introduced with v1.0.0-alpha.0

Reproducing the bug

To reproduce, simply attempt to get the SDK with go get -u github.com/ory/client-go@v1.0.1 from a package using go modules.

Relevant log output

user@localhost mypkg % go get -u github.com/ory/client-go@v1.0.1
go: github.com/ory/client-go@v1.0.1: parsing go.mod:
    module declares its path as: github.com/ory/client-client-go
            but was required as: github.com/ory/client-go

Relevant configuration

No response

Version

v1.0.1

On which operating system are you observing this issue?

macOS

In which environment are you deploying?

Other

Additional Context

I updated my local Kratos install and began seeing Data failed to match schemas in oneOf(UiNodeAttributes) using the Kratos Go client. I noted that the Ory Go Client was updated recently, and attempted to import it to see if it would resolve my problem.