DopplerHQ / cli

The official CLI for interacting with your Doppler secrets and configuration.
https://docs.doppler.com
Apache License 2.0
226 stars 44 forks source link

[BUG] Unsupported architecture #189

Closed wolterlw closed 3 years ago

wolterlw commented 3 years ago

Doppler cli is not available on mips architecture (exact device Onion Omega2Pro, operating system OpenWRT)

Piccirello commented 3 years ago

That looks like a pretty cool device! Could you post the result of running uname -sm on it? This will give us a better sense of exactly what OS and architecture we would need to support.

wolterlw commented 3 years ago

It is quite nifty

~# uname -sm
Linux mips

not too verbose though

Piccirello commented 3 years ago

I've generated a test build for linux/mips. Could you extract it and run ./doppler --version to verify this binary executes for you?

doppler-mips.zip

wolterlw commented 3 years ago
~/tools# ./doppler --version
./doppler: line 1: syntax error: unexpected "("
Piccirello commented 3 years ago

Hmm, that's odd. That binary was compiled using GOOS=linux GOARCH=mips make build. Go 1.16 seems to support 4 different mips architectures for Linux:

$ go version
go version go1.16 darwin/amd64
$ go tool dist list | grep mips
linux/mips
linux/mips64
linux/mips64le
linux/mipsle
openbsd/mips64

I've included a build for each of the four supported architectures. Could you see if any of them work for you?

doppler-mips64.zip doppler-mips64le.zip doppler-mipsle.zip doppler-mips.zip

wolterlw commented 3 years ago

I have tested all 4 versions and doppler-mipsle is the only one properly displaying the version.

Piccirello commented 3 years ago

This is tricky given that the architecture the OS identifies as is different than the architecture it seems to want applications to be compiled for. I'm hesitant to add support to our install scripts for using the mipsle binary when the OS self-identifies as mips. I'm not sure that this edge-case will be sufficiently generic.

Piccirello commented 3 years ago

Closing this issue as I'm not sure there's a clear path forward. Please re-comment if you'd like to continue troubleshooting this.