go-client icon indicating copy to clipboard operation
go-client copied to clipboard

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

Open rschilham opened this issue 2 years ago • 6 comments

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/[email protected]/pkg/fusionauth/Client.go:4637:81: undefined: UserinfoResponse ../../../go/pkg/mod/github.com/!fusion!auth/[email protected]/pkg/fusionauth/Client.go:4638:11: undefined: UserinfoResponse

rschilham avatar Mar 29 '23 11:03 rschilham

Replication steps:

mooreds avatar Apr 03 '23 16:04 mooreds

@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.

mooreds avatar Apr 03 '23 17:04 mooreds

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

go get github.com/FusionAuth/go-client/pkg/[email protected]

instead of

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

rschilham avatar Apr 03 '23 17:04 rschilham

Fair point.

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

mooreds avatar Apr 03 '23 17:04 mooreds

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

oottinger avatar Apr 06 '23 21:04 oottinger

@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!

mooreds avatar Apr 06 '23 22:04 mooreds