Glide: Sudden problem with glide install

Created on 6 Jan 2017  路  6Comments  路  Source: Masterminds/glide

I am trying to do glide install in mac osx, I get these errors:

[ERROR] Failed to set version on github.com/DATA-DOG/godog to 2e189ad0f9dee046e42bb5f04a7ec5e91ec0700e: Unable to update checked out version

[ERROR] Failed to set version on github.com/mitchellh/mapstructure to f3009df150dadf309fdee4a54ed65c124afad715: Unable to update checked out version

How to fix it? I deleted everything in GO_PATH and restarted the system and re-fetched the project, ran glide install and it still fails.

Most helpful comment

:+1:
Maybe glide cache-clear would had helped you too.

All 6 comments

@argentum47
Which glide version are you using?
Could you run glide --debug i and post the output here?

and if possible your glide.yaml

Will do on Monday . :) Using the latest version .. because I did the reinstall to see if it was version problem .. but will check to make sure

Hey @franciscocpg thanks for the --debug tip, this was the problem:

[ERROR] Failed to set version on github.com/garyburd/redigo to 8873b2f1995f59d4bcdd2b0dc9858e2cb9bf0c13: Unable to update checked out version

[DEBUG] Output was: fatal: Unable to create '/Users/alex/.glide/cache/src/https-github.com-garyburd-redigo/.git/index.lock': File exists.

so I rm -rf ed cache/src and it works now.

:+1:
Maybe glide cache-clear would had helped you too.

Could you close this issue then?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stroborobo picture stroborobo  路  26Comments

ansel1 picture ansel1  路  19Comments

mh-cbon picture mh-cbon  路  27Comments

fervic picture fervic  路  32Comments

conikeec picture conikeec  路  18Comments