LoginSignup
0
0

More than 5 years have passed since last update.

Golang glide up の時にエラーが出た場合の対処法 [ERROR] Failed to do initial checkout of config: Unable to retrieve checked out version: exit status 128

Last updated at Posted at 2018-11-07

Golangを扱っていると、その時々で glide.yaml にpackageを追加する場面が出てきます。

通常通り yaml に追記後、

- package: github.plaid.com/plaid/go-plogger-client
  version: 6d7a49971a9273ca885599004f850b4a6486010c
  repo: git@github.plaid.com:plaid/go-plogger-client.git
  vcs: git

glide upします

$ glide up

すると下記エラーが発生

[ERROR] Failed to do initial checkout of config: Unable to retrieve checked out version: exit status 128

-check1: yamlの書き方は正しい事を確認
-check2: package元は存在している

など、とにかく自分自身の設定がおかしくない場合
glideのcacheをクリアしてみるとよい。
状況にもよりますが、私はこれで解決しました。

$ glide cache-clear

※ yamlに"package"の他に、"repo"もしくは"version"を指定した場合に、なんらかの都合で1度失敗するとcacheに何かを抱え込むっポイ。その場合にclearしなければ、どはまりします。

参考元URL
https://github.com/Masterminds/glide/issues/732

0
0
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
0
0