blocto / solana-go-sdk

Solana Golang SDK
https://blocto.github.io/solana-go-sdk/
MIT License
373 stars 96 forks source link

Can't use this repo with go.mod #28

Closed hexdigest closed 2 years ago

hexdigest commented 2 years ago

main.go:9:2: module github.com/portto/solana-go-sdk@latest found (v1.8.1), but does not contain package github.com/portto/solana-go-sdk/rpc

The reason is that the code under the v1.8.1 tag doesn't contain rpc package. Can you please create a new tag?

yihau commented 2 years ago

Hey. thank for your issue. for now you can use go get -v github.com/portto/solana-go-sdk@v1.8.1 first. I will tag a new version (2.0.0) later!!!

hexdigest commented 2 years ago

@yihau It doesn't work. v1.8.1 DOES NOT contain the "rpc" subpackage at all. Try to check out the v1.8.1 tag. So examples from the readme don't work either.

yihau commented 2 years ago

I think you are running latest examples in v1.8.1 sdk. the one of difference between latest version and v1.8.1 is that I move github.com/portto/solana-go-sdk/client/rpc => github.com/portto/solana-go-sdk/rpc so you can't find the module.

sorry for the inconvenience, I tag new version ASAP.

yihau commented 2 years ago

hi there. I've released v2.0.0. Thank you for your patience.

hexdigest commented 2 years ago

Thank you @yihau !

fipso commented 2 years ago

Unbenannt

Am I doing something wrong ?

EDIT:

Using go get -u github.com/portto/solana-go-sdk@14acd5b it worked

yihau commented 2 years ago

@fipso sorry. that's my fault. I don't noticed the upgrading version rules in go mod. Although it don't follow semantic versioning, I've released v1.9.0 as the solution.

you can use go get -u github.com/portto/solana-go-sdk@v1.9.0 to fetch the latest version sdk.