Skip to content
This repository has been archived by the owner on Sep 20, 2018. It is now read-only.

deps: do not install go if it's available on the system #9

Open
rjeczalik opened this issue Mar 7, 2017 · 0 comments
Open

deps: do not install go if it's available on the system #9

rjeczalik opened this issue Mar 7, 2017 · 0 comments

Comments

@rjeczalik
Copy link

rjeczalik commented Mar 7, 2017

Sometimes it may happen that user chose to install go either:

+ by hand by unzipping the Go distibution
+ by Mac installer
= not using homebew

Having [0] would make homebrew to install Go for the second time, which may cause sometimes a lot of subtle problems, since type go will point to homebrew's Go but GOROOT to the old, system one.

I think what would be helpful is to peek if go exist first, and then install it if needed.

[0] https://github.com/go-delve/homebrew-delve/blob/master/Formula/delve.rb#L10

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant