LoginSignup
11
10

More than 5 years have passed since last update.

HomebrewでGo 1.6を入れる

Last updated at Posted at 2016-02-18

2016-02-18時点で既に公式が更新されています

Formulaの編集を元に戻す場合は以下実行、

$ cd /usr/local/Library/Formula/
$ git checkout -f go.rb

さらに公式のFormulaに従ってgo 1.6を入れ直す場合は以下です。

$ rm -rf /usr/local/Cellar/go/1.6
$ brew upgrade go

多分数日で無用になると思うけどメモ

$ brew edit go

でdevelブロックを編集

  devel do
    #以下を差し替える
    url "https://storage.googleapis.com/golang/go1.6.src.tar.gz"
    version "1.6"
    sha256 "a96cce8ce43a9bf9b2a4c7d470bc7ee0cb00410da815980681c8353218dcf146"
  end

アップグレードを実行(未だgoを入れていない場合は brew install ...

$ brew upgrade --devel go
11
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
10