Updating go_resources in Homebrew


This is a quick note to myself about how to update the go_resources in a Homebrew formula.

First, install godep and the Homebrew dev tools:

$ cd $GOPATH
$ go get -u github.com/tools/godep
$ brew tap homebrew/dev-tools

Next, generate a Godeps file in your Go project

$ cd $GOPATH/src/github.com/me/my-project
$ $GOPATH/bin/godep save .

Now you can get brew to generated the go_resources that you can just paste into your formula:

$ cd $GOPATH/src/github.com/me/my-project
$ brew go-resources