Open vainkop opened 3 years ago
Hi @vainkop Thanks for opening this issue. I suspect the DNS resolution failure you are seeing is due to this upstream issue with Go itself: https://github.com/golang/go/issues/8877 I believe building doctl with cgo enabled should produce a working binary for Android. Though that would require building it on the target platform. We disable cgo on our build in order to cross-build for different architectures.
If you a have an Android environment with a functional Go setup, I think they should be able to build it there with:
cd cmd/doctl && CGO_ENABLED=1 go build
Hi @vainkop Thanks for opening this issue. I suspect the DNS resolution failure you are seeing is due to this upstream issue with Go itself: golang/go#8877 I believe building doctl with cgo enabled should produce a working binary for Android. Though that would require building it on the target platform. We disable cgo on our build in order to cross-build for different architectures.
If you a have an Android environment with a functional Go setup, I think they should be able to build it there with:
cd cmd/doctl && CGO_ENABLED=1 go build
@andrewsomething Unfortunately I don't have an environment with android ndk & etc necessary for such builds.
Because this platform is quite popular please consider building Android binaries & putting them into release assets on a regular basis like for the rest of the platforms. I wouldn't like to go through the building process every time you release a new version.
Also posting some issues & link that others might find useful: https://github.com/golang/go/issues/8877 https://github.com/golang/go/wiki/Mobile
Hi @vainkop Thanks for opening this issue. I suspect the DNS resolution failure you are seeing is due to this upstream issue with Go itself: golang/go#8877 I believe building doctl with cgo enabled should produce a working binary for Android. Though that would require building it on the target platform. We disable cgo on our build in order to cross-build for different architectures.
If you a have an Android environment with a functional Go setup, I think they should be able to build it there with:
cd cmd/doctl && CGO_ENABLED=1 go build
Thank you for providing this information. I do have the prequisite environment, and was able to get a functional binary which now permits me to authenticate.
There is no working doctl binary for Android ARM64 & I'd like to be able to use doctl on Android to manage Kubernetes clusters.
Currently I'm able to manage EKS, GKE with their tools like
aws-iam-authenticator
&gcloud
but not DigitalOcean.For example with the latest arm64 binary in the repo releases https://github.com/digitalocean/doctl/releases/download/v1.64.0/doctl-1.64.0-linux-arm64.tar.gz it doesn't work:
But the curl request for same api works ok:
I wasn't able to build a working binary from sources either.