Closed JamieW87 closed 1 month ago
Digging into it, it seems it's looking for the directory
github.com/lightsparkdev/lightspark-crypto-uniffi/lightspark-crypto-go/libs/darwin/arm64
But looking into my vendor directory, this doesnt exist:
It seems like you need to pull this dependency. Try
% go get github.com/lightsparkdev/lightspark-crypto-uniffi/lightspark-crypto-go@v0.4.1
The folder exists in the latest version. You can see it here
https://github.com/lightsparkdev/lightspark-crypto-uniffi/tree/main/lightspark-crypto-go/libs/darwin/arm64
I tried pulling that dependency, and still get the original error.
The version listed in my go mod is
github.com/lightsparkdev/go-sdk v0.15.0
If i look in my vendor folder now i still see the incomplete lightspark-crypto-uniffi directory, like above.
So I've tried deleting my vendor folder, Retrying:
go get github.com/lightsparkdev/go-sdk@v0.15.0
and
go get github.com/lightsparkdev/lightspark-crypto-uniffi/lightspark-crypto-go@v0.4.1
and the problem still persists
Also, The import statement for uniffi in my go.mod is also correct:
github.com/lightsparkdev/lightspark-crypto-uniffi/lightspark-crypto-go v0.4.1 // indirect
So not sure why that folder doesn't exist in my vendor
I checked your go env and it's similar to mine. Could you check your network setup to see if any binary is blocked through go get command?
My local Go is 1.22.3
The project go is 1.21
How do i check the network setup? My installations are pretty bog standard, I haven't done much customisation
Ok i git clone 'd the uniffi folder and copy and pasted the libs directory manually into my vendor directory and got the code working. However I still cant figure out why a standard go get on the base directory isnt getting this particular folder
Yeah, this is weird. Maybe try reinstall your go toolchain again? I'm not able to reproduce this issue. My go get will download everything for me and I'm running a mac as well.
Hey! Sorry about the late reply. Got moved onto something else.
I will try a few things and get back to you. It must be a setup issue my side if it works fine on your end.
Running the example file locally after importing lightspark/go-sdk v0.15.0:
My go env:
Is this a known issue with arm64 architecture, or is there something wrong locally that I am not seeing. Google is being especially unhelpful.