glide.yaml:
package: gin.proj
import:
- package: github.com/gin-gonic/gin
error logs
[INFO] Lock file (glide.lock) does not exist. Performing update.
[INFO] Downloading dependencies. Please wait...
[INFO] --> Fetching updates for github.com/gin-gonic/gin
[INFO] Resolving imports
[INFO] --> Fetching updates for github.com/gin-contrib/sse
[INFO] --> Fetching updates for github.com/mattn/go-isatty
[INFO] --> Fetching updates for github.com/golang/protobuf
[INFO] --> Fetching updates for github.com/ugorji/go
[INFO] --> Fetching updates for gopkg.in/go-playground/validator.v8
[INFO] --> Fetching updates for gopkg.in/yaml.v2
[INFO] --> Fetching golang.org/x/sys/unix
[WARN] Unable to checkout golang.org/x/sys/unix
[ERROR] Error looking for golang.org/x/sys/unix: Cannot detect VCS
[ERROR] Failed to retrieve a list of dependencies: Error resolving imports
when i manually clone the golang.org/x/sys/unix
and mv it to $GOPATH/src/golang.org/x
, the error log is as follows
[INFO] Lock file (glide.lock) does not exist. Performing update.
[INFO] Downloading dependencies. Please wait...
[INFO] --> Fetching updates for github.com/gin-gonic/gin
[INFO] Resolving imports
[INFO] --> Fetching updates for github.com/gin-contrib/sse
[INFO] --> Fetching updates for github.com/mattn/go-isatty
[INFO] --> Fetching updates for github.com/golang/protobuf
[INFO] --> Fetching updates for github.com/ugorji/go
[INFO] --> Fetching updates for gopkg.in/go-playground/validator.v8
[INFO] --> Fetching updates for gopkg.in/yaml.v2
[INFO] --> Fetching golang.org/x/sys/unix
[WARN] Unable to checkout golang.org/x/sys/unix
[INFO] Downloading dependencies. Please wait...
[INFO] Setting references for remaining imports
[ERROR] Failed to set version on golang.org/x/sys/unix to : Cannot detect VCS
[ERROR] Failed to set references: Cannot detect VCS (Skip to cleanup)
[INFO] Exporting resolved dependencies...
[INFO] --> Exporting github.com/mattn/go-isatty
[INFO] --> Exporting github.com/golang/protobuf
[INFO] --> Exporting github.com/gin-contrib/sse
[INFO] --> Exporting github.com/ugorji/go
[INFO] --> Exporting github.com/gin-gonic/gin
[INFO] --> Exporting gopkg.in/go-playground/validator.v8
[INFO] --> Exporting gopkg.in/yaml.v2
[ERROR] Cannot detect VCS
by the way, if i switch to dep
, gin v0.5, not the latest version, will be installed when i use dep ensure
or dep init
.