Masterminds / glide

Package Management for Golang
https://glide.sh
Other
8.15k stars 541 forks source link

Error handling nested vendor folders #955

Closed anthonyheidenreich closed 6 years ago

anthonyheidenreich commented 6 years ago

Error is caused by merge of #953

$: glide --version
glide version 0.13.2-dev

glide.yaml

package: github.com/Kasita-Inc/tmp
import:
- package: github.com/aws/aws-sdk-go
  version: v1.10.20
$: glide --debug install --strip-vendor
[DEBUG] No mirrors.yaml file exists
[INFO]  Downloading dependencies. Please wait...
[DEBUG] Setting up the cache directory
[INFO]  --> Found desired version locally github.com/asaskevich/govalidator 4918b99a7cb949bb295f3c7bbaf24b577d806e35!
[INFO]  --> Found desired version locally github.com/aws/aws-sdk-go b33b08175d12b795daa7726c5577b39d06a2551c!
[INFO]  --> Found desired version locally github.com/davecgh/go-spew 04cdfd42973bb9c8589fd6a731800cf222fde1a9!
[INFO]  --> Found desired version locally github.com/docker/go-units 0dadbb0345b35ec7ef35e228dabb8de89a65bf52!
[INFO]  --> Found desired version locally github.com/go-ini/ini 32e4c1e6bc4e7d0d8451aa6b75200d19e37a536a!
[INFO]  --> Found desired version locally github.com/go-logfmt/logfmt 390ab7935ee28ec6b286364bba9b4dd6410cb3d5!
[INFO]  --> Found desired version locally github.com/go-redis/redis b879d4e0b950159c63ec69d0ed4604dcd0d97bfd!
[INFO]  --> Found desired version locally github.com/go-sql-driver/mysql a0583e0143b1624142adab07e0e97fe106d99561!
[INFO]  --> Found desired version locally github.com/go-stack/stack 259ab82a6cad3992b4e21ff5cac294ccb06474bc!
[INFO]  --> Found desired version locally github.com/golang/protobuf 1e59b77b52bf8e4b449a57e6f79f21226d571845!
[INFO]  --> Found desired version locally github.com/google/uuid 064e2069ce9c359c118179501254f67d7d37ba24!
[INFO]  --> Found desired version locally github.com/jmespath/go-jmespath dd801d4f4ce7ac746e7e7b4489d2fa600b3b096b!
[INFO]  --> Found desired version locally github.com/jmoiron/sqlx de8647470aafe4854c976707c431dbe1eb2822c6!
[INFO]  --> Found desired version locally github.com/Kasita-Inc/mandrill 8cf78e08b01a97197a5da86745a07dd4a5f73fc6!
[INFO]  --> Found desired version locally github.com/mailgun/mailgun-go 17e8bd11e87cb660ba5da8d635bbeae44b9443ac!
[INFO]  --> Found desired version locally github.com/mattes/migrate 035c07716cd373d88456ec4d701402df52584cb4!
[INFO]  --> Found desired version locally github.com/pkg/errors 8842a6e0cc595d1cc9d931f6c875883967280e32!
[INFO]  --> Found desired version locally github.com/pmezard/go-difflib d8ed2627bdf02c080bf22230dbb337003b7aba2d!
[INFO]  --> Found desired version locally github.com/samalba/dockerclient a3036261847103270e9f732509f43b5f98710ace!
[INFO]  --> Found desired version locally github.com/stretchr/testify 2aa2c176b9dab406a6970f6a55f513e8a8c8b18f!
[INFO]  --> Found desired version locally gopkg.in/yaml.v2 287cf08546ab5e7e37d55a84f7ed3fd1db036de5!
[INFO]  Setting references.
[DEBUG] Locking https-github.com-mailgun-mailgun-go
[DEBUG] Locking https-github.com-davecgh-go-spew
[DEBUG] Locking https-github.com-pmezard-go-difflib
[DEBUG] Locking https-github.com-aws-aws-sdk-go
[DEBUG] Locking https-github.com-mattes-migrate
[DEBUG] Locking https-github.com-jmespath-go-jmespath
[DEBUG] Locking https-github.com-samalba-dockerclient
[DEBUG] Locking https-github.com-stretchr-testify
[DEBUG] Locking https-github.com-go-redis-redis
[DEBUG] Locking https-github.com-go-logfmt-logfmt
[DEBUG] Locking https-github.com-google-uuid
[DEBUG] Locking https-github.com-pkg-errors
[DEBUG] Locking https-github.com-go-sql-driver-mysql
[DEBUG] Locking https-github.com-Kasita-Inc-mandrill
[DEBUG] Locking https-github.com-docker-go-units
[DEBUG] Locking https-github.com-go-stack-stack
[DEBUG] Locking https-github.com-jmoiron-sqlx
[INFO]  --> Setting version for github.com/mattes/migrate to 035c07716cd373d88456ec4d701402df52584cb4.
[DEBUG] Locking https-github.com-go-ini-ini
[DEBUG] Locking https-github.com-asaskevich-govalidator
[DEBUG] Locking https-github.com-golang-protobuf
[INFO]  --> Setting version for github.com/davecgh/go-spew to 04cdfd42973bb9c8589fd6a731800cf222fde1a9.
[INFO]  --> Setting version for github.com/samalba/dockerclient to a3036261847103270e9f732509f43b5f98710ace.
[INFO]  --> Setting version for github.com/google/uuid to 064e2069ce9c359c118179501254f67d7d37ba24.
[INFO]  --> Setting version for github.com/Kasita-Inc/mandrill to 8cf78e08b01a97197a5da86745a07dd4a5f73fc6.
[INFO]  --> Setting version for github.com/aws/aws-sdk-go to b33b08175d12b795daa7726c5577b39d06a2551c.
[INFO]  --> Setting version for github.com/mailgun/mailgun-go to 17e8bd11e87cb660ba5da8d635bbeae44b9443ac.
[INFO]  --> Setting version for github.com/go-redis/redis to b879d4e0b950159c63ec69d0ed4604dcd0d97bfd.
[INFO]  --> Setting version for github.com/pmezard/go-difflib to d8ed2627bdf02c080bf22230dbb337003b7aba2d.
[INFO]  --> Setting version for github.com/go-logfmt/logfmt to 390ab7935ee28ec6b286364bba9b4dd6410cb3d5.
[INFO]  --> Setting version for github.com/go-ini/ini to 32e4c1e6bc4e7d0d8451aa6b75200d19e37a536a.
[INFO]  --> Setting version for github.com/go-stack/stack to 259ab82a6cad3992b4e21ff5cac294ccb06474bc.
[INFO]  --> Setting version for github.com/golang/protobuf to 1e59b77b52bf8e4b449a57e6f79f21226d571845.
[INFO]  --> Setting version for github.com/stretchr/testify to 2aa2c176b9dab406a6970f6a55f513e8a8c8b18f.
[INFO]  --> Setting version for github.com/asaskevich/govalidator to 4918b99a7cb949bb295f3c7bbaf24b577d806e35.
[INFO]  --> Setting version for github.com/jmespath/go-jmespath to dd801d4f4ce7ac746e7e7b4489d2fa600b3b096b.
[INFO]  --> Setting version for github.com/go-sql-driver/mysql to a0583e0143b1624142adab07e0e97fe106d99561.
[INFO]  --> Setting version for github.com/pkg/errors to 8842a6e0cc595d1cc9d931f6c875883967280e32.
[INFO]  --> Setting version for github.com/docker/go-units to 0dadbb0345b35ec7ef35e228dabb8de89a65bf52.
[INFO]  --> Setting version for github.com/jmoiron/sqlx to de8647470aafe4854c976707c431dbe1eb2822c6.
[DEBUG] Unlocking https-github.com-samalba-dockerclient
[DEBUG] Locking https-gopkg.in-yaml.v2
[DEBUG] Unlocking https-github.com-mattes-migrate
[DEBUG] Unlocking https-github.com-Kasita-Inc-mandrill
[DEBUG] Unlocking https-github.com-go-sql-driver-mysql
[DEBUG] Unlocking https-github.com-jmespath-go-jmespath
[DEBUG] Unlocking https-github.com-google-uuid
[DEBUG] Unlocking https-github.com-go-redis-redis
[DEBUG] Unlocking https-github.com-pkg-errors
[DEBUG] Unlocking https-github.com-golang-protobuf
[DEBUG] Unlocking https-github.com-davecgh-go-spew
[DEBUG] Unlocking https-github.com-go-ini-ini
[DEBUG] Unlocking https-github.com-mailgun-mailgun-go
[DEBUG] Unlocking https-github.com-go-stack-stack
[DEBUG] Unlocking https-github.com-docker-go-units
[DEBUG] Unlocking https-github.com-pmezard-go-difflib
[DEBUG] Unlocking https-github.com-go-logfmt-logfmt
[DEBUG] Unlocking https-github.com-asaskevich-govalidator
[DEBUG] Unlocking https-github.com-stretchr-testify
[DEBUG] Unlocking https-github.com-aws-aws-sdk-go
[DEBUG] Unlocking https-github.com-jmoiron-sqlx
[INFO]  --> Setting version for gopkg.in/yaml.v2 to 287cf08546ab5e7e37d55a84f7ed3fd1db036de5.
[DEBUG] Unlocking https-gopkg.in-yaml.v2
[INFO]  Exporting resolved dependencies...
[DEBUG] Locking https-github.com-asaskevich-govalidator
[DEBUG] Locking https-github.com-aws-aws-sdk-go
[DEBUG] Locking https-github.com-davecgh-go-spew
[DEBUG] Locking https-github.com-docker-go-units
[DEBUG] Locking https-github.com-go-ini-ini
[DEBUG] Locking https-github.com-go-logfmt-logfmt
[DEBUG] Locking https-github.com-go-redis-redis
[INFO]  --> Exporting github.com/aws/aws-sdk-go
[INFO]  --> Exporting github.com/asaskevich/govalidator
[DEBUG] Locking https-github.com-golang-protobuf
[INFO]  --> Exporting github.com/davecgh/go-spew
[DEBUG] Locking https-github.com-go-stack-stack
[INFO]  --> Exporting github.com/go-ini/ini
[INFO]  --> Exporting github.com/go-logfmt/logfmt
[INFO]  --> Exporting github.com/docker/go-units
[INFO]  --> Exporting github.com/go-redis/redis
[DEBUG] Locking https-github.com-go-sql-driver-mysql
[DEBUG] Locking https-github.com-mailgun-mailgun-go
[DEBUG] Locking https-github.com-google-uuid
[DEBUG] Locking https-github.com-pkg-errors
[DEBUG] Locking https-github.com-jmespath-go-jmespath
[DEBUG] Locking https-github.com-stretchr-testify
[DEBUG] Locking https-github.com-jmoiron-sqlx
[INFO]  --> Exporting github.com/golang/protobuf
[DEBUG] Locking https-github.com-Kasita-Inc-mandrill
[DEBUG] Locking https-github.com-mattes-migrate
[INFO]  --> Exporting github.com/go-stack/stack
[DEBUG] Locking https-github.com-pmezard-go-difflib
[DEBUG] Locking https-github.com-samalba-dockerclient
[INFO]  --> Exporting github.com/google/uuid
[INFO]  --> Exporting github.com/mailgun/mailgun-go
[INFO]  --> Exporting github.com/pkg/errors
[INFO]  --> Exporting github.com/stretchr/testify
[INFO]  --> Exporting github.com/jmoiron/sqlx
[INFO]  --> Exporting github.com/go-sql-driver/mysql
[INFO]  --> Exporting github.com/mattes/migrate
[INFO]  --> Exporting github.com/Kasita-Inc/mandrill
[INFO]  --> Exporting github.com/jmespath/go-jmespath
[INFO]  --> Exporting github.com/pmezard/go-difflib
[INFO]  --> Exporting github.com/samalba/dockerclient
[DEBUG] Unlocking https-github.com-davecgh-go-spew
[DEBUG] Locking https-gopkg.in-yaml.v2
[DEBUG] Unlocking https-github.com-asaskevich-govalidator
[DEBUG] Unlocking https-github.com-go-logfmt-logfmt
[DEBUG] Unlocking https-github.com-go-ini-ini
[DEBUG] Unlocking https-github.com-go-redis-redis
[DEBUG] Unlocking https-github.com-docker-go-units
[DEBUG] Unlocking https-github.com-go-stack-stack
[DEBUG] Unlocking https-github.com-google-uuid
[DEBUG] Unlocking https-github.com-Kasita-Inc-mandrill
[DEBUG] Unlocking https-github.com-go-sql-driver-mysql
[DEBUG] Unlocking https-github.com-jmoiron-sqlx
[DEBUG] Unlocking https-github.com-mattes-migrate
[DEBUG] Unlocking https-github.com-stretchr-testify
[DEBUG] Unlocking https-github.com-pkg-errors
[DEBUG] Unlocking https-github.com-pmezard-go-difflib
[DEBUG] Unlocking https-github.com-samalba-dockerclient
[DEBUG] Unlocking https-github.com-mailgun-mailgun-go
[DEBUG] Unlocking https-github.com-golang-protobuf
[INFO]  --> Exporting gopkg.in/yaml.v2
[DEBUG] Unlocking https-gopkg.in-yaml.v2
[DEBUG] Unlocking https-github.com-jmespath-go-jmespath
[DEBUG] Unlocking https-github.com-aws-aws-sdk-go
[INFO]  Replacing existing vendor dependencies
[INFO]  Removing nested vendor and Godeps/_workspace directories...
[INFO]  Removing: /Users/anthonyh/go/src/github.com/Kasita-Inc/kastillo/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor
[ERROR] Unable to strip vendor directories: open /Users/anthonyh/go/src/github.com/Kasita-Inc/kastillo/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor: no such file or directory
An Error has occurred
Taik commented 6 years ago

Same issue here.

tevren commented 6 years ago

same issue for me as well.

apynes2 commented 6 years ago

same issue

tyler-luminal commented 6 years ago

Same issue as well affect our CI builds.

Taik commented 6 years ago

Quick workaround to fix CI builds:

go get -u github.com/Masterminds/glide && 
cd $$GOPATH/src/github.com/Masterminds/glide && git checkout v0.12.3 && 
go install github.com/Masterminds/glide
adkerr commented 6 years ago

Just to add to the chorus of "me too"

nathanraleigh-wf commented 6 years ago

I'll add my "me too" and hope a fix gets prioritized as it's affecting our CIs as well.

mattfarina commented 6 years ago

Closing as I think this is fixed now