Repository: Masterminds/glide

Issue #640: Broken cache paths
Created: 2016-10-14T19:51:21Z
System Specs
OS: OSX 10.12
Glide: 0.12.3 installed from Brew
Overview
I've run in to an issue when attempting to add dependencies to an existing glide project where the path to cache looks rather odd as it's prefixing the full folder path with dashes to the cached folder name. After deleting both my projects vendor folder, as well as running glide cc in different combinations, I can't seem to get past errors such as these. They find ways of breaking with different packages, not just x/sys/unix.
Error Message Example:
...
[INFO]  --> Fetching updates for golang.org/x/text.
[ERROR] Could not find /Users/dustinblackman/.glide/cache/src/https-golang.org-x-sys/unix: open /Users/dustinblackman/.glide/cache/src/https--Users-dustinblackman-.glide-cache-src-https-golang.org-x-sys-unix: no such file or directory
[ERROR] Dependency golang.org/x/sys/unix (/Users/dustinblackman/.glide/cache/src/https-golang.org-x-sys/unix) failed to resolve: open /Users/dustinblackman/.glide/cache/src/https--Users-dustinblackman-.glide-cache-src-https-golang.org-x-sys-unix: no such file or directory.
[ERROR] Failed to retrieve a list of dependencies: open /Users/dustinblackman/.glide/cache/src/https--Users-dustinblackman-.glide-cache-src-https-golang.org-x-sys-unix: no such file or directory

Reproduce
Clean project, no vendor folder, empty glide cache, using the the following glide.yml copied out of one of the projects I'm having this issue with.
package: github.com/dustinblackman/app
import:
- package: github.com/hpcloud/tail
- package: github.com/fsouza/go-dockerclient
- package: github.com/iris-contrib/middleware
- package: github.com/davecgh/go-spew
- package: github.com/tidwall/gjson
- package: gopkg.in/kataras/iris.v4
- package: github.com/ungerik/go-dry
- package: gopkg.in/fsnotify.v1
  version: ~1.4.1
- package: github.com/spf13/cobra
- package: github.com/spf13/viper
glide install
glide get --all-dependencies github.com/Sirupsen/logrus
After running the last command to install logrus, an error such as the one above will happen.

Duplicate issue #468: glide get did not fetch recursive dependencies
Created: 2016-06-10T12:14:19Z
Hi,
I hope i did not misread the readme in

When glide get is used it will introspect the listed package to resolve its dependencies including using Godep, GPM, Gom, and GB config files.

$ go version
go version go1.6.2 linux/amd64
$ glide -v
glide version 0.10.2-86-g5865b8e
$ mkdir test
$ cd test
$ glide create
[INFO]  Generating a YAML configuration file and guessing the dependencies
[INFO]  Attempting to import from other package managers (use --skip-import to skip)
 $ glide get github.com/mh-cbon/verbose
[INFO]  Preparing to install 1 package.
[INFO]  Importing github.com/mh-cbon/verbose
[INFO]  Downloading dependencies. Please wait...
[INFO]  Fetching updates for github.com/mh-cbon/verbose.
[INFO]  Resolving imports
[INFO]  Downloading dependencies. Please wait...
$ ll vendor/github.com/mh-cbon/
total 4
drwxrwxr-x 6 mh-cbon mh-cbon 4096 10 juin  14:12 verbose
$ ll vendor/
total 4
drwxrwxr-x 3 mh-cbon mh-cbon 4096 10 juin  14:12 github.com
$ 
Notes: glide update works fine and pull dependencies recursively.

Closing comment (2017-04-27T15:10:39Z): The same sort of issue was reported in #640 also about 9 months ago. So it's definitely not some isolated problem. I can't post an easy repro case because it involves Go code in a private repo.