inCaller / prometheus_bot

Telegram bot for prometheus alerting
MIT License
397 stars 183 forks source link

Add `install_dependencies` to Makefile #38

Closed j6s closed 6 years ago

j6s commented 6 years ago

Figuring out the correct dependencies to get after cloning a repository is a little jarring. This make task installs all of the dependencies that are needed to build prometheus_bot.

hryamzik commented 6 years ago

@j6s how about running go get without arguments?

j6s commented 6 years ago

That only works if you clone the repository into your gopath. For a casual 'clone and compile real quick' use case most people will clone the repository into a temporary folder where go get without arguments will fail (see below).

$ go get                                                                                                                                                                                           
go install: no install location for directory /home/j/tmp/prometheus_bot outside GOPATH                                                                                                                                                        
        For more details see: go help gopath    
hryamzik commented 6 years ago

In this case you can create a symlink. Seriously, there's nothing special here, I'd like to avoid unnecessary code and keep things simple.