Glide: intermittent errors with bad error messages.

Created on 8 Feb 2017  路  5Comments  路  Source: Masterminds/glide

glide version 0.12.3

I'm having trouble fixing dependencies. mainly gopkg.in packages have been broken lately (use to work fine before). The error is useless for diagnosing the actual issue.

[ERROR] Update failed for gopkg.in/alecthomas/kingpin.v2: Unable to get repository

Most helpful comment

I was able to fix it by setting: git config --global http.followRedirects true.

All 5 comments

debug flag surfaced the issue:
[DEBUG] Output was: Cloning into '/home/jatone/.glide/cache/src/https-gopkg.in-yaml.v2'...
error: RPC failed; HTTP 301 curl 22 The requested URL returned error: 301
fatal: The remote end hung up unexpectedly[DEBUG] Unlocking https-gopkg.in-yaml.v2

I was able to fix it by setting: git config --global http.followRedirects true.

I just got burned by this too, also with gopkg.in - Maybe they made some sort of change in the last few days?

Very confusing.

Same issue. Strange that the default setting for http.followRedirects of initial isn't sufficient for glide?

Was this page helpful?
0 / 5 - 0 ratings