chocolatey-archive / chocolatey

[DEPRECATED - https://github.com/chocolatey/choco] Chocolatey NuGet - Like apt-get, but for windows.
https://chocolatey.org
Apache License 2.0
2.81k stars 344 forks source link

Errors when running Chocolatey inside a bash shell #373

Open mcandre opened 10 years ago

mcandre commented 10 years ago

I'm happy to see progress for bash compatibility in Chocolatey! This makes my Command Prompt workflows and Git Bash workflows work much better together.

However, there are some minor issues to resolve. It can be hard to see Chocolatey's output when bash colors are set.

Screenshot:

http://i.imgur.com/fjIzoqN.png

Could we have Chocolatey disable colorized output when it's running inside of a cygwin environment? For a quick hack, we could check the value of MAKE_MODE; If it's set to "unix", then we're inside a cygwin environment.

Also, Chocolatey has problems with successfully elevating permissions when running inside of bash. I was unable to install erlang via Chocolatey in bash.

Trace:

https://gist.github.com/mcandre/7515205

As a workaround, I launched a raw Command Prompt to run "chocolatey uninstall erlang" and "chocolatey install erlang", whereupon Erlang was successfully installed.

Complete side note: Though I still had to manually add the Erlang binaries to PATH, as the formula doesn't do this.

System:

ferventcoder commented 10 years ago

That's a really pretty image. :)