滑行更新无法检测到VCS

Trying to set up the go project using Glide. I have been finding the error Cannot detect VCS when I ran the command glide up -v.

Errors:

[ERROR] Error looking for project/base: Cannot detect VCS
[INFO]  --> Fetching project/form
[WARN]  Unable to checkout project/form
[ERROR] Error looking for project/form: Cannot detect VCS
[INFO]  --> Fetching project/api
[WARN]  Unable to checkout project/api
[ERROR] Error looking for project/api/request: Cannot detect VCS
[INFO]  --> Fetching updates for github.com/go-openapi/analysis

I saw something similar using glide update using Glide 0.13.2, and Go versions 1.10.6 and 1.11.5.

Using the more detailed glide --debug update, I found a wee bit more detail: -

[DEBUG] ImportDir error on /Users/hayd/.glide/cache/src/https-crypto-tls: cannot find package "." in:
    /Users/hayd/.glide/cache/src/https-crypto-tls

BUT this did lead me to look at my Git source folder - $GOPATH/src - which, amongst other things had this: -

drwxr-xr-x   3 hayd  staff   96 29 Mar 19:31 crypto

which was a directory containing a sinmgle empty subdirectory: -

drwxr-xr-x  2 hayd  staff   64 29 Mar 19:33 tls

So this kinda tied up with the symptom shown up in the --debug trace i.e. cannot find package "." even though it was in a completely different place.

Once I did rm -Rf $GOPATH/src/crypto, the glide update worked a treat.

I'd previously gone down a rabbit hole with glide clear-cache and glide mirror, both of which were poisson rouge.

Hope this helps others in the same situation :-)