tfutils/tfenv

tfenv downloading Linux binaries on Cygwin

ElvenSpellmaker opened this issue · 0 comments

Hey I believe this worked in the past but now tfenv is downloading Linux binaries from Cygwin.

From the ~/.tfenv/libexec/tfenv-install script I notice this on line 95:

  CYGWINNT*)
    kernel="windows";
    ;;

However uname -s for Cygwin produces:

$ uname -s
CYGWIN_NT-10.0-19044

It seems to have been changed from CYGWIN_NT* to CYGWINNT* in this commit: 0a60714
I'm not sure this was intentional? (Also note how MSYS_NT* changes to MSYSNT* too)

(Also as a side point the binaries it does download are missing x and so manual intervention is always required, a quick chmod u+x after downloading on the terraform.exe would be nice)