Download command failed on MacOS
alexellis opened this issue · comments
Expected Behaviour
inletsctl download --pro
should get me a MacOS binary when using Mac, but it was a Linux binary that was downloaded
Possible Solution
Add unit tests and fix bug.
Steps to Reproduce (for bugs)
- Use a Mac
- Run
inletsctl download --pro
- See the wrong binary, it downloads for Linux
cc @Waterdrips
@Waterdrips perhaps you can write a Go unit test that runs the command then checks the binary is as expected? I used the file
utility to find the binary format was correct.
file /usr/local/bin/inlets-pro
/usr/local/bin/inlets-pro: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, stripped
There may be other ways to do this too.