shyiko/jabba

jabba use doesn't work on windows.

gdoenlen opened this issue · 0 comments

The command returns posix shell: https://github.com/shyiko/jabba/blob/master/command/use.go#L39

This would never work on windows (and it doesn't).

I'm not a go dev, but shouldn't you be using something like os.Setenv ?

~> gc .jabbarc
openjdk@1.15.0

~> $env:JAVA_HOME
C:\Users\george\scoop\apps\openjdk\current
~> jabba use
~> $env:JAVA_HOME
C:\Users\george\scoop\apps\openjdk\current