elijah / chef-prometheus

Chef cookbook for Prometheus. The open source service monitoring system and time-series database.
Apache License 2.0
52 stars 93 forks source link

Installing newer version fails #54

Closed aktarali closed 7 years ago

aktarali commented 8 years ago

Hi;

I'm trying to install version 1.0.2. Updated the attributes and it fails with the following messages:

* Unable to parse SHA reference for '1.0.2' in repository 'https://github.com/prometheus/prometheus.git'. Verify your (case-sensitive) repository URL and revision.
`git ls-remote 'https://github.com/prometheus/prometheus.git' '1.0.2*'` output: 
================================================================================
Error executing action `checkout` on resource 'git[/var/chef/cache/prometheus-1.0.2]'

Please advise.

Thanks Ali.

AlexeyDemidov commented 8 years ago

You need to specify git_revision and set it to v1.0.2 (note leading symbol v)

aktarali commented 8 years ago

Tried doing that and I'm getting the following:

Seems the newer versions needs GOPATH specified. Doing that breaks everything as things need to be built under GOPATH. The rest of the cookbook needs modifying if this is to work.

Can someone please assist?

Ali.

raju-divakaran commented 8 years ago

I was able to overcome this error by specifying the version with v

elijah commented 7 years ago

I think there are 2 different bugs here. One is around the version, one around the known gopath problem in one of the other issues.