LoginSignup
3
2

More than 3 years have passed since last update.

goenvで1.12.9を使えるようにする

Last updated at Posted at 2019-08-21

概要

goenvを利用していて、goenv install -l を打ったが、1.12.9がなかったので、goenvに用意されているgo-buildプラグインを使って、1.12.9を使えるようにしてみた。

使い方は下記READMEにて
https://github.com/syndbg/goenv/tree/master/plugins/go-build

手順

# goenvのリポジトリをクローン
git clone https://github.com/syndbg/goenv.git

# インストールしたいVersionのDirecotryを作っとく
mkdir $HOME/.goenv/versions/1.12.9

# 1.12.9のインストール
cd ./goenv
go-build 1.12.9 $HOME/.goenv/versions/1.12.9

# goenvのバージョンに追加されているかどうか確認
goenv versions

あとはgoenv local 1.12.9goenv global 1.12.9 で切り替えができる。

3
2
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
3
2