Skip to content

habitat 0.7.0 (new formula)#2002

Closed
bltavares wants to merge 1 commit intoHomebrew:masterfrom
bltavares:habitat-0.6.0
Closed

habitat 0.7.0 (new formula)#2002
bltavares wants to merge 1 commit intoHomebrew:masterfrom
bltavares:habitat-0.6.0

Conversation

@bltavares
Copy link
Copy Markdown

@bltavares bltavares commented Jun 15, 2016

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same formula update/change?
  • Have you built your formula locally prior to submission with brew install <formula> (where <formula> is the name of the formula you're submitting)?
  • Does your submission pass brew audit --strict --online <formula> (after doing brew install <formula>)?

Adds formula for Habitat

Comment thread Formula/habitat.rb Outdated
Copy link
Copy Markdown
Contributor

@schisamo schisamo Jun 15, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll want to go directly to the CDN link of:
https://habitat.bintray.com/stable/darwin/x86_64/hab-<VERSION>-x86_64-darwin.zip

The Bintray API link is only useful if you want to use a logical version of $latest in your URL like we do on the main Habitat download page: https://api.bintray.com/content/habitat/stable/darwin/x86_64/hab-$latest-x86_64-darwin.zip?bt_package=hab-x86_64-darwin (note the $latest).

You'll also want to use the latest 0.7.0 release in this initial formula:

URL: https://habitat.bintray.com/stable/darwin/x86_64/hab-0.7.0-20160614231131-x86_64-darwin.zip
SHA256: 93fac880261df34c75ac5775c9febb536b82ac955cd6df873bbfec1cf697ed50

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the information, I had trouble using the $latest syntax and just replaced with the name of the file as I didn't know the alternate URL

@schisamo
Copy link
Copy Markdown
Contributor

As a side note for future updating you can get the SHA256 checksum by making a simple HEAD request to the download URL (this works for all Bintray URLs):

➜  curl -I https://habitat.bintray.com/stable/darwin/x86_64/hab-0.7.0-20160614231131-x86_64-darwin.zip
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 15 Jun 2016 12:38:36 GMT
Content-Type: application/zip
Content-Length: 3149461
Connection: keep-alive
Last-Modified: Tue, 14 Jun 2016 23:57:08 GMT
Accept-Ranges: none
ETag: 93fac880261df34c75ac5775c9febb536b82ac955cd6df873bbfec1cf697ed50
X-Checksum-Sha1: 02ffd11436f26f84d580a5b419b68337a6230f2d
X-Checksum-Sha2: 93fac880261df34c75ac5775c9febb536b82ac955cd6df873bbfec1cf697ed50

@bltavares bltavares changed the title habitat 0.6.0 (new formula) habitat 0.7.0 (new formula) Jun 15, 2016
@stevenhaddox
Copy link
Copy Markdown

Just tried to install this on Linux via linuxbrew before reviewing the code. Apparently it's only for the OS X version of habitat. My bad. Super excited for my Macs at home though!

@DomT4
Copy link
Copy Markdown
Contributor

DomT4 commented Jun 15, 2016

This was added as a Cask, since it apparently doesn't build easily from source. Ref: Homebrew/homebrew-cask#21977

brew cask install hab.

@DomT4 DomT4 closed this Jun 15, 2016
@Homebrew Homebrew locked and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants