FusionAuth / go-client

FusionAuth Go Client Library!
https://fusionauth.io/
Apache License 2.0
29 stars 32 forks source link

compilation error: fusionauth/Client.go:4637:81: undefined: UserinfoResponse #72

Open rschilham opened 1 year ago

rschilham commented 1 year ago

Today, after upgrading to the latest version I got the following compilation errors:

github.com/FusionAuth/go-client/pkg/fusionauth ../../../go/pkg/mod/github.com/!fusion!auth/go-client@v0.0.0-20230329000531-fe9962acdce5/pkg/fusionauth/Client.go:4637:81: undefined: UserinfoResponse ../../../go/pkg/mod/github.com/!fusion!auth/go-client@v0.0.0-20230329000531-fe9962acdce5/pkg/fusionauth/Client.go:4638:11: undefined: UserinfoResponse

mooreds commented 1 year ago

Replication steps:

mooreds commented 1 year ago

@rschilham, I think the issue is that you are not using a released version of the code. When I check out the latest released version (1.44), the code compiles.

rschilham commented 1 year ago

Ok, but then the installation instructions in README.md should perhaps be

go get github.com/FusionAuth/go-client/pkg/fusionauth@1.44.0

instead of

go get github.com/FusionAuth/go-client/pkg/fusionauth

mooreds commented 1 year ago

Fair point.

Can you review https://github.com/FusionAuth/go-client/pull/73 and see if it addresses your concerns, @rschilham ?

oottinger commented 1 year ago

I too am running into this issue. What's the best way to determine the list of released client versions? When I browse to the releases I only see a single release that looks quite old.

https://github.com/FusionAuth/go-client/releases

mooreds commented 1 year ago

@oottinger you can use the tags view: https://github.com/FusionAuth/go-client/tags

Here's guidance on which client to use based on which version of FusionAuth you are using: https://fusionauth.io/docs/v1/tech/client-libraries/#versioning

Thanks!