Skip to content

Instantly share code, notes, and snippets.

@rlespinasse
Last active March 2, 2016 11:28
Show Gist options
  • Save rlespinasse/5011f7e34e77218250cd to your computer and use it in GitHub Desktop.
Save rlespinasse/5011f7e34e77218250cd to your computer and use it in GitHub Desktop.
HOW-TO: Update the verions of golo-lang on Homebrew

Update the versions of golo-lang on Homebrew

Retrieve information

  • Get the url of the distribution archive for the new release
  • Get the sha256 of this archive (like shasum -a 256 {archive})

Propose the pull request for the release

  • Fork https://github.com/Homebrew/homebrew
  • Create a new branch golo-{version}[-{milestone}]
  • Edit Library/Formula/golo.rb with the url to the new distribution artifact and his sha256
  • Commit with the message golo {version}[-{milestone}]
  • Propose the pull-request to Homebrew (the title must be as simple as golo {version}[-{milestone}] to facilitate the work of maintainers)

Milestone release

  • instead of update the url/sha256, add (or update) the devel block to the formula with the url and his sha256
devel do
  url "https://bintray.com/artifact/download/golo-lang/downloads/golo-{version}[-{milestone}].zip"
  sha256 "{sha256 of the archive}"
  version "golo-{version}[-{milestone}]"
end

GA release

  • in addition of the update, remove the devel block to the formula

Wait the merge of the pull-request

  • When the wait is over, update homebrew on your own computer and brew install golo (or brew install --devel golo in case of milestone release)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment