fubarhouse / ansible-role-golang

Installs the Go programming language and packages on Mac & Linux (Ubuntu, CentOS)
MIT License
105 stars 32 forks source link

Add new param to prevent GOPATH being deleted #152

Closed derekhiggins closed 4 years ago

derekhiggins commented 4 years ago

go_install_clean causes various parts of a previous install from being removed, but there may be cases where you are testing local modifications in your GOPATH and don't want these removed.

Add a new parameter to prevent GOPATH being removed during cleanup, leaving the default behaviour remaining the same.

fubarhouse commented 4 years ago

Looks good, it would fix a rather persistent problem I'm facing every time I upgrade on Mac. Let's merge it, thank you!