Open mei-rune opened 8 years ago
Need more context, please.
glide.yaml
?go env
look like?I am seeing the same problem here on Windows 10 64-bit. Glide is 0.13.0-dev and Go is 1.7.3. The error only happens when I run glide get ...
to pull in new packages, and does NOT happen when I run glide install ...
.
Here's my glide.yaml
:
package: github.com/F21/myproject
import:
- package: github.com/hashicorp/raft
- package: github.com/hashicorp/serf
version: ^0.8.0
- package: github.com/Sirupsen/logrus
version: ^0.11.0
- package: github.com/hashicorp/raft-boltdb
- package: github.com/pkg/errors
version: ^0.8.0
- package: k8s.io/client-go
version: ^2.0.0-alpha.0
- package: github.com/hashicorp/vault
version: ^0.6.2
subpackages:
- api
- package: github.com/mitchellh/mapstructure
glide.lock
:
hash: 02353925878776cd1117ea4f5d9c78874f94a7f3f7a7c19d5643854be3f6202c
updated: 2016-11-15T16:46:27.5033815+11:00
imports:
- name: cloud.google.com/go
version: 3b1ae45394a234c385be014e9a488f2bb6eef821
subpackages:
- compute/metadata
- internal
- name: github.com/armon/go-metrics
version: 3df31a1ada83e310c2e24b267c8e8b68836547b4
- name: github.com/blang/semver
version: 31b736133b98f26d5e078ec9eb591666edfd091f
- name: github.com/boltdb/bolt
version: 4b1ebc1869ad66568b313d0dc410e2be72670dda
- name: github.com/coreos/go-oidc
version: 5644a2f50e2d2d5ba0b474bc5bc55fea1925936d
subpackages:
- http
- jose
- key
- oauth2
- oidc
- name: github.com/coreos/pkg
version: fa29b1d70f0beaddd4c7021607cc3c3be8ce94b8
subpackages:
- health
- httputil
- timeutil
- name: github.com/davecgh/go-spew
version: 5215b55f46b2b919f50a1df0eaa5886afe4e3b3d
subpackages:
- spew
- name: github.com/docker/distribution
version: ""
subpackages:
- digest
- reference
- name: github.com/emicklei/go-restful
version: 89ef8af493ab468a45a42bb0d89a06fccdd2fb22
subpackages:
- log
- swagger
- name: github.com/fatih/structs
version: dc3312cb1a4513a366c4c9e622ad55c32df12ed3
- name: github.com/ghodss/yaml
version: 73d445a93680fa1a78ae23a5839bad48f32ba1ee
- name: github.com/go-openapi/jsonpointer
version: 46af16f9f7b149af66e5d1bd010e3574dc06de98
- name: github.com/go-openapi/jsonreference
version: 13c6e3589ad90f49bd3e3bbe2c2cb3d7a4142272
- name: github.com/go-openapi/spec
version: 6aced65f8501fe1217321abf0749d354824ba2ff
- name: github.com/go-openapi/swag
version: 1d0bd113de87027671077d3c71eb3ac5d7dbba72
- name: github.com/gogo/protobuf
version: e18d7aa8f8c624c915db340349aad4c49b10d173
subpackages:
- proto
- sortkeys
- name: github.com/golang/glog
version: 44145f04b68cf362d9c4df2182967c2275eaefed
- name: github.com/golang/protobuf
version: 8616e8ee5e20a1704615e6c8d7afcdac06087a67
subpackages:
- proto
- name: github.com/google/gofuzz
version: bbcb9da2d746f8bdbd6a936686a0a6067ada0ec5
- name: github.com/hashicorp/errwrap
version: 7554cd9344cec97297fa6649b055a8c98c2a1e55
- name: github.com/hashicorp/go-cleanhttp
version: ad28ea4487f05916463e2423a55166280e8254b5
- name: github.com/hashicorp/go-msgpack
version: fa3f63826f7c23912c15263591e65d54d080b458
subpackages:
- codec
- name: github.com/hashicorp/go-multierror
version: 8c5f0ad9360406a3807ce7de6bc73269a91a6e51
- name: github.com/hashicorp/go-rootcerts
version: 6bb64b370b90e7ef1fa532be9e591a81c3493e00
- name: github.com/hashicorp/hcl
version: c3e054bfd4dcf77b9965ed2b79b22afa2f41d4eb
subpackages:
- hcl/ast
- hcl/parser
- hcl/scanner
- hcl/strconv
- hcl/token
- json/parser
- json/scanner
- json/token
- name: github.com/hashicorp/memberlist
version: 7ad712f5f34ec40aebe6ca47756d07898486a8d2
- name: github.com/hashicorp/raft
version: 5f09c4ffdbcd2a53768e78c47717415de12b6728
- name: github.com/hashicorp/raft-boltdb
version: a8adffd05b79e3d8b1817d46bbe387a112265b3e
- name: github.com/hashicorp/serf
version: b9642a47e6139e50548b6f14588a1a3c0839660a
subpackages:
- coordinate
- serf
- name: github.com/hashicorp/vault
version: 22619b6786724c8eca5340a63395bf3058e1e3f7
subpackages:
- api
- helper/compressutil
- helper/jsonutil
- name: github.com/jonboulle/clockwork
version: 72f9bd7c4e0c2a40055ab3d0f09654f730cce982
- name: github.com/juju/ratelimit
version: 77ed1c8a01217656d2080ad51981f6e99adaa177
- name: github.com/kubernetes/client-go
version: b22087a53becae45931ed72d5e0f12e0031d771a
subpackages:
- pkg/api
- pkg/watch
- name: github.com/mailru/easyjson
version: d5b7844b561a7bc640052f1b935f7b800330d7e0
subpackages:
- buffer
- jlexer
- jwriter
- name: github.com/miekg/dns
version: 58f52c57ce9df13460ac68200cef30a008b9c468
- name: github.com/mitchellh/go-homedir
version: 756f7b183b7ab78acdbbee5c7f392838ed459dda
- name: github.com/mitchellh/mapstructure
version: f3009df150dadf309fdee4a54ed65c124afad715
- name: github.com/pborman/uuid
version: ca53cad383cad2479bbba7f7a1a05797ec1386e4
- name: github.com/pkg/errors
version: 645ef00459ed84a119197bfb8d8205042c6df63d
- name: github.com/PuerkitoBio/purell
version: 8a290539e2e8629dbc4e6bad948158f790ec31f4
- name: github.com/PuerkitoBio/urlesc
version: 5bd2802263f21d8788851d5305584c82a5c75d7e
- name: github.com/sethgrid/pester
version: 2a102734c18c43c74fd0664e06cd414cf9602b93
- name: github.com/Sirupsen/logrus
version: d26492970760ca5d33129d2d799e34be5c4782eb
- name: github.com/spf13/pflag
version: c7e63cf4530bcd3ba943729cee0efeff2ebea63f
- name: github.com/ugorji/go
version: f1f1a805ed361a0e078bb537e4ea78cd37dcf065
subpackages:
- codec
- name: golang.org/x/net
version: e90d6d0afc4c315a0d87a568ae68577cc15149a0
subpackages:
- context
- context/ctxhttp
- http2
- http2/hpack
- idna
- lex/httplex
- name: golang.org/x/oauth2
version: 3c3a985cb79f52a3190fbc056984415ca6763d01
subpackages:
- google
- internal
- jws
- jwt
- name: golang.org/x/sys
version: 8f0908ab3b2457e2e15403d3697c9ef5cb4b57a9
subpackages:
- unix
- name: golang.org/x/text
version: 2910a502d2bf9e43193af9d68ca516529614eed3
subpackages:
- cases
- internal/tag
- language
- runes
- secure/bidirule
- secure/precis
- transform
- unicode/bidi
- unicode/norm
- width
- name: google.golang.org/appengine
version: 4f7eeb5305a4ba1966344836ba4af9996b7b4e05
subpackages:
- internal
- internal/app_identity
- internal/base
- internal/datastore
- internal/log
- internal/modules
- internal/remote_api
- internal/urlfetch
- urlfetch
- name: gopkg.in/inf.v0
version: 3887ee99ecf07df5b447e9b00d9c0b2adaa9f3e4
- name: gopkg.in/yaml.v2
version: 53feefa2559fb8dfa8d81baad31be332c97d6c77
- name: k8s.io/client-go
version: b22087a53becae45931ed72d5e0f12e0031d771a
subpackages:
- discovery
- kubernetes
- kubernetes/typed/apps/v1alpha1
- kubernetes/typed/authentication/v1beta1
- kubernetes/typed/authorization/v1beta1
- kubernetes/typed/autoscaling/v1
- kubernetes/typed/batch/v1
- kubernetes/typed/certificates/v1alpha1
- kubernetes/typed/core/v1
- kubernetes/typed/extensions/v1beta1
- kubernetes/typed/policy/v1alpha1
- kubernetes/typed/rbac/v1alpha1
- kubernetes/typed/storage/v1beta1
- pkg/api
- pkg/api/errors
- pkg/api/install
- pkg/api/meta
- pkg/api/meta/metatypes
- pkg/api/resource
- pkg/api/unversioned
- pkg/api/v1
- pkg/api/validation/path
- pkg/apimachinery
- pkg/apimachinery/announced
- pkg/apimachinery/registered
- pkg/apis/apps
- pkg/apis/apps/install
- pkg/apis/apps/v1alpha1
- pkg/apis/authentication
- pkg/apis/authentication/install
- pkg/apis/authentication/v1beta1
- pkg/apis/authorization
- pkg/apis/authorization/install
- pkg/apis/authorization/v1beta1
- pkg/apis/autoscaling
- pkg/apis/autoscaling/install
- pkg/apis/autoscaling/v1
- pkg/apis/batch
- pkg/apis/batch/install
- pkg/apis/batch/v1
- pkg/apis/batch/v2alpha1
- pkg/apis/certificates
- pkg/apis/certificates/install
- pkg/apis/certificates/v1alpha1
- pkg/apis/extensions
- pkg/apis/extensions/install
- pkg/apis/extensions/v1beta1
- pkg/apis/policy
- pkg/apis/policy/install
- pkg/apis/policy/v1alpha1
- pkg/apis/rbac
- pkg/apis/rbac/install
- pkg/apis/rbac/v1alpha1
- pkg/apis/storage
- pkg/apis/storage/install
- pkg/apis/storage/v1beta1
- pkg/auth/user
- pkg/conversion
- pkg/conversion/queryparams
- pkg/fields
- pkg/genericapiserver/openapi/common
- pkg/labels
- pkg/runtime
- pkg/runtime/serializer
- pkg/runtime/serializer/json
- pkg/runtime/serializer/protobuf
- pkg/runtime/serializer/recognizer
- pkg/runtime/serializer/streaming
- pkg/runtime/serializer/versioning
- pkg/selection
- pkg/third_party/forked/golang/reflect
- pkg/types
- pkg/util
- pkg/util/cert
- pkg/util/clock
- pkg/util/errors
- pkg/util/flowcontrol
- pkg/util/framer
- pkg/util/integer
- pkg/util/intstr
- pkg/util/json
- pkg/util/labels
- pkg/util/net
- pkg/util/parsers
- pkg/util/rand
- pkg/util/runtime
- pkg/util/sets
- pkg/util/uuid
- pkg/util/validation
- pkg/util/validation/field
- pkg/util/wait
- pkg/util/yaml
- pkg/version
- pkg/watch
- pkg/watch/versioned
- plugin/pkg/client/auth
- plugin/pkg/client/auth/gcp
- plugin/pkg/client/auth/oidc
- rest
- tools/clientcmd/api
- tools/metrics
- transport
testImports: []
Here's some partial debug output:
[DEBUG] Locking https-golang.org-x-sys
[DEBUG] Dependency golang.org/x/sys has already been pinned. Setting version skipped.
[DEBUG] Unlocking https-golang.org-x-sys
[DEBUG] Locking https-github.com-hashicorp-raft-boltdb
[DEBUG] Locking https-github.com-mailru-easyjson
[DEBUG] Dependency github.com/mailru/easyjson has already been pinned. Setting version skipped.
[DEBUG] Unlocking https-github.com-mailru-easyjson
[DEBUG] Locking https-gopkg.in-yaml.v2
[DEBUG] Dependency gopkg.in/yaml.v2 has already been pinned. Setting version skipped.
[DEBUG] Unlocking https-gopkg.in-yaml.v2
[DEBUG] Locking https-google.golang.org-appengine
[DEBUG] Dependency google.golang.org/appengine has already been pinned. Setting version skipped.
[DEBUG] Unlocking https-google.golang.org-appengine
[DEBUG] Locking https-cloud.google.com-go
[DEBUG] Dependency cloud.google.com/go has already been pinned. Setting version skipped.
[DEBUG] Unlocking https-cloud.google.com-go
[DEBUG] Locking https-github.com-coreos-pkg
[DEBUG] Dependency github.com/coreos/pkg has already been pinned. Setting version skipped.
[DEBUG] Unlocking https-github.com-coreos-pkg
[DEBUG] Locking https-github.com-PuerkitoBio-urlesc
[DEBUG] Dependency github.com/PuerkitoBio/urlesc has already been pinned. Setting version skipped.
[DEBUG] Unlocking https-github.com-PuerkitoBio-urlesc
[DEBUG] Locking https-golang.org-x-oauth2
[DEBUG] Dependency golang.org/x/oauth2 has already been pinned. Setting version skipped.
[DEBUG] Unlocking https-golang.org-x-oauth2
[DEBUG] Locking https-github.com-kubernetes-client-go
[DEBUG] Locking https-github.com-docker-distribution
[DEBUG] Locking https-github.com-PuerkitoBio-purell
[DEBUG] Dependency github.com/PuerkitoBio/purell has already been pinned. Setting version skipped.
[DEBUG] Unlocking https-github.com-PuerkitoBio-purell
[DEBUG] Locking https-golang.org-x-text
[DEBUG] Dependency golang.org/x/text has already been pinned. Setting version skipped.
[DEBUG] Unlocking https-golang.org-x-text
[DEBUG] Locking https-github.com-jonboulle-clockwork
[DEBUG] Dependency github.com/jonboulle/clockwork has already been pinned. Setting version skipped.
[DEBUG] Unlocking https-github.com-jonboulle-clockwork
[DEBUG] Locking https-github.com-coreos-go-oidc
[DEBUG] Dependency github.com/coreos/go-oidc has already been pinned. Setting version skipped.
[DEBUG] Unlocking https-github.com-coreos-go-oidc
[DEBUG] Locking https-github.com-golang-protobuf
[DEBUG] Dependency github.com/golang/protobuf has already been pinned. Setting version skipped.
[DEBUG] Unlocking https-github.com-golang-protobuf
[DEBUG] Unlocking https-github.com-emicklei-go-restful
[DEBUG] Unlocking https-github.com-hashicorp-raft-boltdb
[DEBUG] Unlocking https-github.com-kubernetes-client-go
[INFO] --> Setting version for github.com/docker/distribution to cd27f179f2c10c5d300e6d09025b538c475b0d51.
[INFO] --> Detected semantic version. Setting version for github.com/Sirupsen/logrus to v0.11.0.
[ERROR] Failed to set version on github.com/docker/distribution to cd27f179f2c10c5d300e6d09025b538c475b0d51: Unable to update checked out version
[DEBUG] Output was: error: Your local changes to the following files would be overwritten by checkout:
.mailmap
AUTHORS
Dockerfile
Godeps/Godeps.json
MAINTAINERS
Makefile
README.md
ROADMAP.md
blobs.go
circle.yml
cmd/registry/main.go
configuration/configuration.go
configuration/configuration_test.go
context/http.go
contrib/docker-integration/README.md
contrib/docker-integration/docker-compose.yml
Please commit your changes or stash them before you switch branches.
Aborting[DEBUG] Unlocking https-github.com-docker-distribution
[INFO] --> Detected semantic version. Setting version for github.com/pkg/errors to v0.8.0.
[DEBUG] Unlocking https-github.com-pkg-errors
[DEBUG] Unlocking https-github.com-Sirupsen-logrus
[ERROR] Failed to set references: Unable to update checked out version
[DEBUG] Output was: error: Your local changes to the following files would be overwritten by checkout:
.mailmap
AUTHORS
Dockerfile
Godeps/Godeps.json
MAINTAINERS
Makefile
README.md
ROADMAP.md
blobs.go
circle.yml
cmd/registry/main.go
configuration/configuration.go
configuration/configuration_test.go
context/http.go
contrib/docker-integration/README.md
contrib/docker-integration/docker-compose.yml
Please commit your changes or stash them before you switch branches.
Aborting[INFO] Exporting resolved dependencies...
[DEBUG] Locking https-github.com-hashicorp-raft
[DEBUG] Locking https-github.com-hashicorp-serf
[DEBUG] Locking https-github.com-Sirupsen-logrus
[DEBUG] Locking https-github.com-hashicorp-raft-boltdb
[DEBUG] Locking https-github.com-pkg-errors
[DEBUG] Locking https-k8s.io-client-go
[DEBUG] Locking https-github.com-hashicorp-vault
[DEBUG] Locking https-github.com-mitchellh-mapstructure
[DEBUG] Locking https-github.com-fatih-structs
[DEBUG] Locking https-github.com-hashicorp-go-multierror
[DEBUG] Locking https-github.com-hashicorp-go-cleanhttp
[DEBUG] Locking https-github.com-sethgrid-pester
[DEBUG] Locking https-github.com-golang-glog
[DEBUG] Locking https-github.com-hashicorp-go-rootcerts
[DEBUG] Locking https-golang.org-x-net
[DEBUG] Locking https-github.com-ugorji-go
[DEBUG] Locking https-golang.org-x-sys
[DEBUG] Locking https-github.com-davecgh-go-spew
[DEBUG] Locking https-github.com-armon-go-metrics
[DEBUG] Locking https-github.com-hashicorp-hcl
[INFO] --> Exporting github.com/hashicorp/raft
[INFO] --> Exporting github.com/Sirupsen/logrus
[INFO] --> Exporting github.com/hashicorp/serf
[INFO] --> Exporting github.com/mitchellh/mapstructure
[INFO] --> Exporting github.com/fatih/structs
[INFO] --> Exporting github.com/hashicorp/raft-boltdb
[INFO] --> Exporting github.com/hashicorp/vault
[INFO] --> Exporting github.com/pkg/errors
[INFO] --> Exporting github.com/hashicorp/go-cleanhttp
[INFO] --> Exporting github.com/sethgrid/pester
[DEBUG] Unlocking https-github.com-fatih-structs
[DEBUG] Locking https-github.com-hashicorp-go-msgpack
[INFO] --> Exporting github.com/hashicorp/go-rootcerts
[INFO] --> Exporting github.com/golang/glog
[INFO] --> Exporting github.com/hashicorp/go-multierror
[INFO] --> Exporting github.com/hashicorp/hcl
[DEBUG] Unlocking https-github.com-Sirupsen-logrus
[DEBUG] Locking https-github.com-miekg-dns
[INFO] --> Exporting k8s.io/client-go
[DEBUG] Unlocking https-github.com-hashicorp-raft
[DEBUG] Locking https-github.com-boltdb-bolt
[DEBUG] Unlocking https-github.com-mitchellh-mapstructure
[DEBUG] Locking https-github.com-hashicorp-memberlist
[INFO] --> Exporting golang.org/x/net
[DEBUG] Unlocking https-github.com-hashicorp-go-cleanhttp
[DEBUG] Locking https-github.com-hashicorp-errwrap
[INFO] --> Exporting github.com/ugorji/go
[DEBUG] Unlocking https-github.com-hashicorp-raft-boltdb
[DEBUG] Locking https-github.com-mitchellh-go-homedir
[INFO] --> Exporting github.com/armon/go-metrics
[INFO] --> Exporting github.com/davecgh/go-spew
[DEBUG] Unlocking https-github.com-pkg-errors
[DEBUG] Locking https-github.com-go-openapi-spec
[DEBUG] Unlocking https-github.com-sethgrid-pester
[DEBUG] Locking https-github.com-gogo-protobuf
[DEBUG] Unlocking https-github.com-hashicorp-go-rootcerts
[DEBUG] Locking https-github.com-spf13-pflag
[INFO] --> Exporting golang.org/x/sys
[INFO] --> Exporting github.com/hashicorp/go-msgpack
[DEBUG] Unlocking https-github.com-armon-go-metrics
[DEBUG] Locking https-gopkg.in-inf.v0
[DEBUG] Unlocking https-github.com-davecgh-go-spew
[DEBUG] Locking https-github.com-google-gofuzz
[INFO] --> Exporting github.com/miekg/dns
[INFO] --> Exporting github.com/boltdb/bolt
[DEBUG] Unlocking https-github.com-golang-glog
[DEBUG] Locking https-github.com-pborman-uuid
[INFO] --> Exporting github.com/mitchellh/go-homedir
[INFO] --> Exporting github.com/hashicorp/memberlist
[INFO] --> Exporting github.com/hashicorp/errwrap
[INFO] --> Exporting github.com/go-openapi/spec
[INFO] --> Exporting github.com/gogo/protobuf
[DEBUG] Unlocking https-github.com-hashicorp-go-msgpack
[DEBUG] Locking https-github.com-emicklei-go-restful
[INFO] --> Exporting github.com/spf13/pflag
[DEBUG] Unlocking https-github.com-hashicorp-hcl
[DEBUG] Locking https-github.com-juju-ratelimit
[DEBUG] Unlocking https-github.com-ugorji-go
[DEBUG] Locking https-github.com-blang-semver
[INFO] --> Exporting github.com/google/gofuzz
[INFO] --> Exporting github.com/pborman/uuid
[INFO] --> Exporting gopkg.in/inf.v0
[INFO] --> Exporting github.com/juju/ratelimit
[INFO] --> Exporting github.com/emicklei/go-restful
[INFO] --> Exporting github.com/blang/semver
[DEBUG] Unlocking https-github.com-pborman-uuid
[DEBUG] Locking https-github.com-go-openapi-jsonpointer
[DEBUG] Unlocking https-gopkg.in-inf.v0
[DEBUG] Locking https-github.com-go-openapi-jsonreference
[DEBUG] Unlocking https-github.com-hashicorp-memberlist
[DEBUG] Locking https-github.com-go-openapi-swag
[DEBUG] Unlocking https-github.com-google-gofuzz
[DEBUG] Locking https-github.com-ghodss-yaml
[DEBUG] Unlocking https-github.com-juju-ratelimit
[DEBUG] Locking https-golang.org-x-oauth2
[DEBUG] Unlocking https-github.com-blang-semver
[DEBUG] Locking https-github.com-coreos-go-oidc
[INFO] --> Exporting github.com/go-openapi/jsonreference
[INFO] --> Exporting github.com/go-openapi/jsonpointer
[INFO] --> Exporting github.com/go-openapi/swag
[INFO] --> Exporting github.com/ghodss/yaml
[INFO] --> Exporting github.com/coreos/go-oidc
[DEBUG] Unlocking https-github.com-hashicorp-errwrap
[DEBUG] Locking https-github.com-docker-distribution
[DEBUG] Unlocking https-github.com-mitchellh-go-homedir
[DEBUG] Locking https-github.com-PuerkitoBio-purell
[DEBUG] Unlocking https-github.com-go-openapi-swag
[DEBUG] Locking https-github.com-mailru-easyjson
[INFO] --> Exporting github.com/docker/distribution
[INFO] --> Exporting github.com/PuerkitoBio/purell
[INFO] --> Exporting github.com/mailru/easyjson
[DEBUG] Unlocking https-github.com-go-openapi-jsonreference
[DEBUG] Locking https-gopkg.in-yaml.v2
[INFO] --> Exporting golang.org/x/oauth2
[DEBUG] Unlocking https-github.com-boltdb-bolt
[DEBUG] Locking https-google.golang.org-appengine
[DEBUG] Unlocking https-github.com-go-openapi-spec
[DEBUG] Locking https-cloud.google.com-go
[DEBUG] Unlocking https-github.com-PuerkitoBio-purell
[DEBUG] Locking https-github.com-coreos-pkg
[INFO] --> Exporting github.com/coreos/pkg
[DEBUG] Unlocking https-github.com-go-openapi-jsonpointer
[DEBUG] Locking https-github.com-jonboulle-clockwork
[INFO] --> Exporting github.com/jonboulle/clockwork
[INFO] --> Exporting gopkg.in/yaml.v2
[INFO] --> Exporting google.golang.org/appengine
[INFO] --> Exporting cloud.google.com/go
[DEBUG] Unlocking https-gopkg.in-yaml.v2
[DEBUG] Locking https-github.com-PuerkitoBio-urlesc
[DEBUG] Unlocking https-github.com-hashicorp-go-multierror
[DEBUG] Locking https-golang.org-x-text
[INFO] --> Exporting github.com/PuerkitoBio/urlesc
[DEBUG] Unlocking https-github.com-PuerkitoBio-urlesc
[DEBUG] Locking https-github.com-golang-protobuf
[DEBUG] Unlocking https-github.com-spf13-pflag
[DEBUG] Locking https-github.com-kubernetes-client-go
[DEBUG] Unlocking https-github.com-miekg-dns
[DEBUG] Unlocking https-github.com-coreos-go-oidc
[INFO] --> Exporting github.com/golang/protobuf
[INFO] --> Exporting github.com/kubernetes/client-go
[INFO] --> Exporting golang.org/x/text
[DEBUG] Unlocking https-github.com-jonboulle-clockwork
[DEBUG] Unlocking https-github.com-ghodss-yaml
[DEBUG] Unlocking https-github.com-coreos-pkg
[DEBUG] Unlocking https-github.com-emicklei-go-restful
[DEBUG] Unlocking https-golang.org-x-oauth2
[DEBUG] Unlocking https-github.com-mailru-easyjson
[DEBUG] Unlocking https-github.com-hashicorp-serf
[DEBUG] Unlocking https-golang.org-x-sys
[DEBUG] Unlocking https-google.golang.org-appengine
[DEBUG] Unlocking https-github.com-golang-protobuf
[DEBUG] Unlocking https-golang.org-x-net
[DEBUG] Unlocking https-cloud.google.com-go
[DEBUG] Unlocking https-golang.org-x-text
[DEBUG] Unlocking https-github.com-docker-distribution
[DEBUG] Unlocking https-k8s.io-client-go
[DEBUG] Unlocking https-github.com-kubernetes-client-go
[DEBUG] Unlocking https-github.com-gogo-protobuf
[DEBUG] Unlocking https-github.com-hashicorp-vault
[INFO] Replacing existing vendor dependencies
[DEBUG] Cross link err on Windows, trying manual copy: rename C:\Users\user\AppData\Local\Temp\glide-vendor701207259\vendor D:\Work\src\github.com\F21\myproject\vendor: The system cannot move the file to a different disk drive.
[INFO] Removing nested vendor and Godeps/_workspace directories...
[INFO] Removing: D:\Work\src\github.com\F21\myproject\vendor\github.com\docker\distribution\vendor
[INFO] Removing: D:\Work\src\github.com\F21\myproject\vendor\github.com\hashicorp\go-multierror\vendor
[INFO] Removing: D:\Work\src\github.com\F21\myproject\vendor\github.com\hashicorp\serf\vendor
[INFO] Removing: D:\Work\src\github.com\F21\myproject\vendor\github.com\hashicorp\vault\vendor
[INFO] Removing: D:\Work\src\github.com\F21\myproject\vendor\github.com\kubernetes\client-go\vendor
[INFO] Removing: D:\Work\src\github.com\F21\myproject\vendor\k8s.io\client-go\vendor
An Error has occurred
Getting roughly same , on sunos
, Go v1.7 , and latest Glide from source:
[ERROR] Failed to set version on github.com/aws/aws-sdk-go to 90dec2183a5f5458ee79cbaf4b8e9ab910bc81a6: Unable to update checked out version
[ERROR] Failed to set version on github.com/coreos/etcd to c400d05d0aa73e21e431c16145e558d624098018: Unable to update checked out version
[ERROR] Failed to set version on github.com/gogo/protobuf to 909568be09de550ed094403c2bf8a261b5bb730a: Unable to update checked out version
[ERROR] Failed to set version on github.com/hashicorp/consul to fce7d75609a04eeb9d4bf41c8dc592aac18fc97d: Unable to update checked out version
[ERROR] Failed to set version on golang.org/x/text to a49bea13b776691cb1b49873e5d8df96ec74831a: Unable to update checked out version
[ERROR] Failed to set version on google.golang.org/api to 9bf6e6e569ff057f75d9604a46c52928f17d2b54: Unable to update checked out version
[ERROR] Failed to set version on k8s.io/client-go to 843f7c4f28b1f647f664f883697107d5c02c5acc: Unable to update checked out version
[ERROR] Failed to set references: Unable to update checked out version
Unable to update checked out version
Unable to update checked out version
Unable to update checked out version
Unable to update checked out version
Unable to update checked out version
Unable to update checked out version (Skip to cleanup)
I was able to resolve a similar issue with thrift.git by removing the cached folder from /Users/logged_in_user/.glide/cache/src/https-git.apache.org-thrift.git
I was getting this issue for some other dependencies but it did not go away after clearing my cache. I had a setting in my .gitattributes file that was giving it a problem:
#.gitattributes
# Automatically normalize line endings for all text-based files
* text=auto
After removing that setting, glide install worked for me. If clearing your cache doesn't work for you, you might want to check your .gitconfig settings. Don't know if anyone else ran into this, but I thought I'd share, just in case.
On some git repos, if .gitattributes is enabled, files are modified during the git clone phase. So when glide attempts to get a specific version (sha) the git checkout
fails. An example project would be https://github.com/mailru/easyjson.git
If I clone the repo by hand (with the same .gitattributes settings as @cfchase) files get modified during the clone phase.
$ git clone https://github.com/mailru/easyjson.git
Cloning into 'easyjson'...
remote: Counting objects: 1005, done.
remote: Total 1005 (delta 0), reused 0 (delta 0), pack-reused 1005
Receiving objects: 100% (1005/1005), 305.53 KiB | 0 bytes/s, done.
Resolving deltas: 100% (575/575), done.
Checking connectivity... done.
$ cd easyjson/
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: parser/parser_windows.go
no changes added to commit (use "git add" and/or "git commit -a")
Then if I try to checkout a specific commit like glide would do for a locked down version, the checkout will fail. Naturally it fails because there are modified files.
$ git checkout d5b7844b561a7bc640052f1b935f7b800330d7e0
error: Your local changes to the following files would be overwritten by checkout:
parser/parser_windows.go
Please commit your changes or stash them before you switch branches.
Aborting
[jesusr@speed3 easyjson{master}]$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: parser/parser_windows.go
no changes added to commit (use "git add" and/or "git commit -a")
I believe glide should print out the error that actually occurred so that it would be easier to debug what's going on. Instead of just [ERROR] Unable to update checked out version
The offending code I believe is in vcs/git.go
under the vendor directory of glide.
https://github.com/Masterminds/glide/blob/master/vendor/github.com/Masterminds/vcs/git.go#L159-L167
// UpdateVersion sets the version of a package currently checked out via Git.
func (s *GitRepo) UpdateVersion(version string) error {
out, err := s.RunFromDir("git", "checkout", version)
if err != nil {
return NewLocalError("Unable to update checked out version", err, string(out))
}
return s.defendAgainstSubmodules()
}
Or potentially in vcs.go
https://github.com/Masterminds/glide/blob/master/repo/vcs.go#L240-L242
I receive this type of error often when I try to glide install
a new revision of a dependency that exists only in my GOPATH. This happens when our team has private project dependencies that I'm working on in parallel. The only solution that works for me is to commit the dependency revision to master before attempting to glide install
in the current project.
I ran into this issue because of a stale lockfile. I only figured it out once I entered the cache directory and tried to issue the checkout myself. Would be useful if glide displayed git's stderr in these scenarios.
vagrant@vagrant-ubuntu-trusty-64:~/.glide/cache/src/https-github.com-tmm1-blevex$ git checkout 58782622cfc67561b97cb8eee1f85bd973175e78
fatal: Unable to create '/home/vagrant/.glide/cache/src/https-github.com-tmm1-blevex/.git/index.lock': File exists.
Specifically for docker/distribution on Windows the issue is this: https://github.com/docker/distribution/issues/1690
If you try to checkout the commit manually in the glide cache directory it fails and leaves the repo in a mid updated state.
This will happen to any git repository with files in it that contain characters not supported by windows files/directories.
[INFO] --> Fetching updates for github.com/influxdata/influxdb. [ERROR] Update failed for github.com/influxdata/influxdb: Unable to retrieve checked out version