appcelerator-archive / amp

** THIS PROJECT IS STOPPED ** An open source CaaS for Docker, batteries included.
http://appcelerator.io
Apache License 2.0
81 stars 28 forks source link

Vendor issue #1053

Closed freignat91 closed 7 years ago

freignat91 commented 7 years ago

It's not possible to add a package in vendor, no matter the package, we got:

[ERROR] Error scanning github.com/gogo/protobuf/types: open /go/src/github.com/appcelerator/amp/.glide/cache/src/https-github.com-gogo-protobuf/types: no such file or directory
subfuzion commented 7 years ago

In these instances, you can always manually delete the specific directory in your cache (./.glide/cache/src) or you can just clear the entire cache (ampmake cleanall-deps).

bquenin commented 7 years ago

To expand on the issue, ampmake cleanall build fails.

$ ampmake cleanall build
[INFO]  Lock file (glide.lock) does not exist. Performing update.
[INFO]  Downloading dependencies. Please wait...
[INFO]  --> Fetching github.com/spf13/viper.
[INFO]  --> Fetching github.com/docker/docker.
[INFO]  --> Fetching google.golang.org/grpc.
[INFO]  --> Fetching github.com/golang/protobuf.
[INFO]  --> Fetching github.com/fatih/color.
[INFO]  --> Fetching github.com/dgrijalva/jwt-go.
[INFO]  --> Fetching github.com/hlandau/passlib.
[INFO]  --> Fetching github.com/coreos/etcd.
[INFO]  --> Fetching github.com/holys/safe.
[INFO]  --> Fetching github.com/fatih/structs.
[INFO]  --> Fetching github.com/howeyc/gopass.
[INFO]  --> Fetching github.com/julienschmidt/httprouter.
[INFO]  --> Fetching github.com/nats-io/go-nats.
[INFO]  --> Fetching github.com/mitchellh/go-homedir.
[INFO]  --> Fetching github.com/nats-io/go-nats-streaming.
[INFO]  --> Fetching github.com/spf13/pflag.
[INFO]  --> Fetching github.com/spf13/cobra.
[INFO]  --> Fetching github.com/ory-am/ladon.
[INFO]  --> Fetching github.com/sendgrid/sendgrid-go.
[INFO]  --> Fetching golang.org/x/net.
[INFO]  --> Fetching gopkg.in/olivere/elastic.v5.
[INFO]  --> Fetching gopkg.in/yaml.v2.
[INFO]  --> Fetching github.com/stretchr/testify.
[INFO]  --> Fetching github.com/elastic/beats.
[INFO]  --> Fetching github.com/pkg/errors.
[INFO]  --> Fetching github.com/mattn/go-shellwords.
[INFO]  --> Fetching github.com/xeipuuv/gojsonschema.
[INFO]  --> Fetching github.com/ThomasRooney/gexpect.
[INFO]  --> Fetching github.com/mhale/smtpd.
[INFO]  --> Setting version for github.com/spf13/viper to 5ed0fc31f7f453625df314d8e66b9791e8d13003.
[INFO]  --> Setting version for github.com/golang/protobuf to 8ee79997227bf9b34611aee7946ae64735e6fd93.
[INFO]  --> Setting version for github.com/spf13/cobra to 35136c09d8da66b901337c6e86fd8e88a1a255bd.
[INFO]  --> Setting version for github.com/spf13/pflag to 9ff6c6923cfffbcd502984b8e0c80539a94968b7.
[INFO]  --> Detected semantic version. Setting version for github.com/julienschmidt/httprouter to v1.1.
[INFO]  --> Detected semantic version. Setting version for github.com/ory-am/ladon to v0.5.0.
[INFO]  --> Detected semantic version. Setting version for github.com/coreos/etcd to v3.1.6.
[INFO]  --> Detected semantic version. Setting version for github.com/dgrijalva/jwt-go to v3.0.0.
[INFO]  --> Detected semantic version. Setting version for github.com/nats-io/go-nats-streaming to v0.3.4.
[INFO]  --> Detected semantic version. Setting version for github.com/fatih/color to v1.4.1.
[INFO]  --> Detected semantic version. Setting version for github.com/mattn/go-shellwords to v1.0.3.
[INFO]  --> Detected semantic version. Setting version for github.com/docker/docker to v17.05.0-ce-rc1.
[INFO]  --> Detected semantic version. Setting version for github.com/nats-io/go-nats to v1.2.2.
[INFO]  --> Detected semantic version. Setting version for github.com/hlandau/passlib to v1.0.9.
[INFO]  --> Detected semantic version. Setting version for github.com/fatih/structs to v1.0.
[INFO]  --> Detected semantic version. Setting version for github.com/elastic/beats to v5.3.0.
[INFO]  --> Detected semantic version. Setting version for github.com/sendgrid/sendgrid-go to v3.3.1.
[INFO]  --> Detected semantic version. Setting version for github.com/pkg/errors to v0.8.0.
[INFO]  --> Detected semantic version. Setting version for google.golang.org/grpc to v1.2.1.
[INFO]  --> Setting version for golang.org/x/net to 41bba8d80bbfab43231ffdf4c210037baae5f6a3.
[INFO]  --> Detected semantic version. Setting version for gopkg.in/olivere/elastic.v5 to v5.0.36.
[INFO]  Resolving imports
[INFO]  --> Fetching github.com/docker/go-connections.
[INFO]  --> Fetching github.com/docker/go-units.
[INFO]  --> Fetching github.com/Sirupsen/logrus.
[INFO]  --> Fetching github.com/docker/distribution.
[INFO]  --> Fetching github.com/docker/notary.
[INFO]  --> Fetching github.com/Azure/go-ansiterm.
[INFO]  --> Fetching github.com/Nvveen/Gotty.
[INFO]  --> Fetching github.com/mitchellh/mapstructure.
[INFO]  --> Fetching github.com/davecgh/go-spew.
[INFO]  --> Fetching github.com/nats-io/nuid.
[INFO]  --> Fetching golang.org/x/sys.
[INFO]  Found GB manifest file in .glide/cache/src/https-github.com-fatih-color
[INFO]  --> Parsing GB metadata...
[INFO]  --> Fetching github.com/mattn/go-colorable.
[INFO]  --> Setting version for github.com/mattn/go-colorable to 5411d3eea5978e6cdc258b30de592b60df6aba96.
[INFO]  --> Fetching github.com/mattn/go-isatty.
[INFO]  --> Setting version for github.com/mattn/go-isatty to 57fdcb988a5c543893cc61bce354a6e24ab70022.
[INFO]  --> Fetching golang.org/x/crypto.
[INFO]  --> Setting version for golang.org/x/sys to e24f485414aeafb646f6fca458b0bf869c0880a1.
[INFO]  --> Fetching github.com/inconshreveable/mousetrap.
[INFO]  --> Fetching github.com/satori/go.uuid.
[INFO]  --> Setting version for github.com/satori/go.uuid to v1.1.0.
[INFO]  --> Fetching github.com/elastic/go-ucfg.
[INFO]  --> Setting version for github.com/elastic/go-ucfg to v0.4.6.
[INFO]  --> Fetching github.com/nranchev/go-libGeoIP.
[INFO]  --> Setting version for github.com/nranchev/go-libGeoIP to c78e8bd2dd3599feb21fd30886043979e82fe948.
[WARN]  Conflict: github.com/pkg/errors semantic version constraint is ^0.8.0 but '^0.8.0' does not meet the constraint
[INFO]  Keeping github.com/pkg/errors ^0.8.0
[INFO]  --> Fetching github.com/fsnotify/fsnotify.
[INFO]  --> Fetching github.com/hashicorp/hcl.
[INFO]  --> Fetching github.com/magiconair/properties.
[INFO]  --> Fetching github.com/pelletier/go-toml.
[INFO]  --> Fetching github.com/spf13/afero.
[INFO]  --> Fetching github.com/spf13/cast.
[INFO]  --> Fetching github.com/spf13/jwalterweatherman.
[INFO]  --> Setting version for gopkg.in/yaml.v2 to a83829b6f1293c91addabc89d0571c246397bbf4.
[INFO]  --> Fetching gopkg.in/hlandau/easymetric.v1.
[INFO]  --> Fetching gopkg.in/hlandau/passlib.v1.
[INFO]  --> Detected semantic version. Setting version for github.com/Sirupsen/logrus to v0.11.5.
[INFO]  --> Fetching github.com/go-redis/redis.
[INFO]  --> Detected semantic version. Setting version for github.com/go-redis/redis to v6.1.3.
[INFO]  --> Fetching github.com/jmoiron/sqlx.
[INFO]  --> Fetching github.com/ory-am/common.
[INFO]  --> Detected semantic version. Setting version for github.com/ory-am/common to v0.4.0.
[INFO]  --> Fetching github.com/rubenv/sql-migrate.
[INFO]  --> Fetching gopkg.in/gorethink/gorethink.v3.
[INFO]  --> Detected semantic version. Setting version for gopkg.in/gorethink/gorethink.v3 to v3.0.2.
[INFO]  --> Fetching github.com/ghodss/yaml.
[INFO]  --> Setting version for github.com/ghodss/yaml to 73d445a93680fa1a78ae23a5839bad48f32ba1ee.
[INFO]  --> Fetching github.com/grpc-ecosystem/go-grpc-prometheus.
[INFO]  --> Setting version for github.com/grpc-ecosystem/go-grpc-prometheus to v1.1.
[INFO]  --> Fetching github.com/opencontainers/go-digest.
[INFO]  --> Fetching github.com/sendgrid/rest.
[INFO]  --> Fetching github.com/nats-io/nats.
[INFO]  --> Fetching github.com/docker/libtrust.
[INFO]  --> Fetching github.com/docker/docker-credential-helpers.
[INFO]  --> Fetching github.com/Microsoft/go-winio.
[WARN]  Conflict: github.com/spf13/pflag rev is currently 9ff6c6923cfffbcd502984b8e0c80539a94968b7, but github.com/coreos/etcd wants 08b1a584251b5b62f458943640fc8ebd4d50aaa5
[INFO]  github.com/spf13/pflag reference 9ff6c6923cfffbcd502984b8e0c80539a94968b7:
[INFO] - author: Ian Campbell <ijc25@users.noreply.github.com>
[INFO] - commit date: Mon, 30 Jan 2017 21:42:45 +0000
[INFO] - subject (first line): Add FlagSet.FlagUsagesWrapped(cols) which wraps to the given column (#105)
[INFO]  github.com/spf13/pflag reference 08b1a584251b5b62f458943640fc8ebd4d50aaa5:
[INFO] - author: Eric Paris <eparis@redhat.com>
[INFO] - commit date: Tue, 13 Oct 2015 15:06:43 -0500
[INFO] - subject (first line): Merge pull request #59 from eparis/csv-escaping
[INFO]  Keeping github.com/spf13/pflag 9ff6c6923cfffbcd502984b8e0c80539a94968b7
[WARN]  Conflict: golang.org/x/net rev is currently 41bba8d80bbfab43231ffdf4c210037baae5f6a3, but github.com/elastic/beats wants d58ca6618b994150e624f6888d871f4709db51a0
[INFO]  golang.org/x/net reference 41bba8d80bbfab43231ffdf4c210037baae5f6a3:
[INFO] - author: Mikio Hara <mikioh.mikioh@gmail.com>
[INFO] - commit date: Fri, 27 Jan 2017 23:21:26 +0900
[INFO] - subject (first line): route: add support for the manipulation of routing informaion
[INFO]  golang.org/x/net reference d58ca6618b994150e624f6888d871f4709db51a0:
[INFO] - author: Nigel Tao <nigeltao@golang.org>
[INFO] - commit date: Fri, 04 Mar 2016 15:46:28 +1100
[INFO] - subject (first line): publicsuffix: update table to latest list from publicsuffix.org.
[INFO]  Keeping golang.org/x/net 41bba8d80bbfab43231ffdf4c210037baae5f6a3
[INFO]  --> Setting version for golang.org/x/crypto to 1351f936d976c60a0a48d728281922cf63eafb8d.
[INFO]  --> Fetching github.com/docker/swarmkit.
[INFO]  --> Fetching github.com/flynn-archive/go-shlex.
[INFO]  --> Fetching github.com/gogo/protobuf.
[INFO]  --> Setting version for github.com/gogo/protobuf to v0.3.
[WARN]  Conflict: github.com/spf13/cobra rev is currently 35136c09d8da66b901337c6e86fd8e88a1a255bd, but github.com/coreos/etcd wants 1c44ec8d3f1552cac48999f9306da23c4d8a288b
[INFO]  github.com/spf13/cobra reference 35136c09d8da66b901337c6e86fd8e88a1a255bd:
[INFO] - author: French Ben <FrenchBen@users.noreply.github.com>
[INFO] - commit date: Mon, 30 Jan 2017 13:45:31 -0800
[INFO] - subject (first line): Added support for yaml ouptut in docs gen (#380)
[INFO]  github.com/spf13/cobra reference 1c44ec8d3f1552cac48999f9306da23c4d8a288b:
[INFO] - author: Eric Paris <eparis@redhat.com>
[INFO] - commit date: Tue, 24 Nov 2015 10:32:17 -0500
[INFO] - subject (first line): Merge pull request #200 from sobit/patch-1
[INFO]  Keeping github.com/spf13/cobra 35136c09d8da66b901337c6e86fd8e88a1a255bd
[INFO]  --> Fetching github.com/mitchellh/hashstructure.
[INFO]  --> Setting version for github.com/mitchellh/hashstructure to b098c52ef6beab8cd82bc4a32422cf54b890e8fa.
[INFO]  --> Fetching github.com/joeshaw/multierror.
[INFO]  --> Setting version for github.com/joeshaw/multierror to 69b34d4ec901851247ae7e77d33909caf9df99ed.
[INFO]  --> Fetching github.com/Shopify/sarama.
[INFO]  --> Setting version for github.com/Shopify/sarama to v1.11/enh/offset-replica-id.
[INFO]  --> Fetching github.com/rcrowley/go-metrics.
[INFO]  --> Setting version for github.com/rcrowley/go-metrics to ab2277b1c5d15c3cba104e9cbddbdfc622df5ad8.
[INFO]  --> Fetching github.com/elastic/go-lumber.
[INFO]  --> Setting version for github.com/elastic/go-lumber to v0.1.0.
[INFO]  --> Fetching github.com/garyburd/redigo.
[INFO]  --> Setting version for github.com/garyburd/redigo to v1.0.0.
[INFO]  --> Fetching github.com/pelletier/go-buffruneio.
[INFO]  --> Fetching golang.org/x/text.
[INFO]  --> Setting version for golang.org/x/text to d69c40b4be55797923cec7457fac7a244d91a9b6.
[INFO]  --> Fetching gopkg.in/hlandau/measurable.v1.
[INFO]  --> Fetching github.com/go-errors/errors.
[INFO]  --> Fetching github.com/oleiade/reflections.
[INFO]  --> Detected semantic version. Setting version for github.com/oleiade/reflections to v1.0.0.
[INFO]  --> Setting version for github.com/stretchr/testify to v1.1.3.
[INFO]  --> Fetching gopkg.in/gorp.v1.
[INFO]  --> Fetching github.com/cenkalti/backoff.
[INFO]  --> Fetching github.com/hailocab/go-hostpool.
[INFO]  --> Fetching gopkg.in/fatih/pool.v2.
[INFO]  --> Fetching github.com/grpc-ecosystem/grpc-gateway.
[INFO]  --> Setting version for github.com/grpc-ecosystem/grpc-gateway to 84398b94e188ee336f307779b57b3aa91af7063c.
[INFO]  --> Fetching github.com/prometheus/client_golang.
[INFO]  --> Setting version for github.com/prometheus/client_golang to v0.8.0.
[INFO]  --> Fetching github.com/opencontainers/runc.
[INFO]  --> Fetching github.com/agl/ed25519.
[INFO]  --> Fetching github.com/docker/go.
[INFO]  --> Fetching github.com/docker/go-events.
[ERROR] Error scanning github.com/gogo/protobuf/types: open /go/src/github.com/appcelerator/amp/.glide/cache/src/https-github.com-gogo-protobuf/types: no such file or directory
[ERROR] This error means the referenced package was not found.
[ERROR] Missing file or directory errors usually occur when multiple packages
[ERROR] share a common dependency and the first reference encountered by the scanner
[ERROR] sets the version to one that does not contain a subpackage needed required
[ERROR] by another package that uses the shared dependency. Try setting a
[ERROR] version in your glide.yaml that works for all packages that share this
[ERROR] dependency.
[INFO]  --> Fetching github.com/xeipuuv/gojsonreference.
[INFO]  --> Setting version for github.com/davecgh/go-spew to 5215b55f46b2b919f50a1df0eaa5886afe4e3b3d.
[INFO]  --> Fetching github.com/eapache/go-resiliency.
[INFO]  --> Setting version for github.com/eapache/go-resiliency to b86b1ec0dd4209a588dc1285cdd471e73525c0b3.
[INFO]  --> Fetching github.com/eapache/go-xerial-snappy.
[INFO]  --> Setting version for github.com/eapache/go-xerial-snappy to bb955e01b9346ac19dc29eb16586c90ded99a98c.
[INFO]  --> Fetching github.com/eapache/queue.
[INFO]  --> Setting version for github.com/eapache/queue to ded5959c0d4e360646dc9e9908cff48666781367.
[INFO]  --> Fetching github.com/klauspost/crc32.
[INFO]  --> Setting version for github.com/klauspost/crc32 to v1.0.
[INFO]  --> Fetching github.com/pierrec/lz4.
[INFO]  --> Setting version for github.com/pierrec/lz4 to 5c9560bfa9ace2bf86080bf40d46b34ae44604df.
[INFO]  --> Fetching github.com/klauspost/compress.
[INFO]  --> Setting version for github.com/klauspost/compress to v1.0.
[INFO]  Found Godeps.json file in .glide/cache/src/https-github.com-stretchr-testify
[INFO]  --> Parsing Godeps metadata...
[INFO]  --> Fetching github.com/pmezard/go-difflib.
[INFO]  --> Setting version for github.com/pmezard/go-difflib to 792786c7400a136282c1664665ae0a8db921c6c2.
[WARN]  Conflict: github.com/golang/protobuf rev is currently 8ee79997227bf9b34611aee7946ae64735e6fd93, but github.com/coreos/etcd wants 4bd1920723d7b7c925de087aa32e2187708897f7
[INFO]  github.com/golang/protobuf reference 8ee79997227bf9b34611aee7946ae64735e6fd93:
[INFO] - author: Bryan C. Mills <bcmills@google.com>
[INFO] - commit date: Wed, 16 Nov 2016 22:31:26 -0500
[INFO] - subject (first line): descriptor: rename generated protobuf package on import.
[INFO]  github.com/golang/protobuf reference 4bd1920723d7b7c925de087aa32e2187708897f7:
[INFO] - author: Joe Tsai <joetsai@digital-static.net>
[INFO] - commit date: Tue, 08 Nov 2016 23:27:36 -0800
[INFO] - subject (first line): Merge pull request #249 from Huawei-PTLab/master
[INFO]  Keeping github.com/golang/protobuf 8ee79997227bf9b34611aee7946ae64735e6fd93
[INFO]  --> Fetching github.com/beorn7/perks.
[INFO]  --> Fetching github.com/prometheus/client_model.
[INFO]  --> Fetching github.com/prometheus/common.
[INFO]  --> Fetching github.com/prometheus/procfs.
[INFO]  --> Fetching golang.org/x/time.
[INFO]  --> Setting version for golang.org/x/time to a4bde12657593d5e90d0533a3e4fd95e635124cb.
[INFO]  --> Fetching github.com/xeipuuv/gojsonpointer.
[INFO]  --> Fetching github.com/golang/snappy.
[INFO]  --> Setting version for github.com/golang/snappy to d9eb7a3d35ec988b8585d4a0068e462c27d28380.
[INFO]  --> Fetching github.com/pierrec/xxHash.
[INFO]  --> Setting version for github.com/pierrec/xxHash to 5a004441f897722c627870a981d02b29924215fa.
[INFO]  --> Fetching github.com/matttproud/golang_protobuf_extensions.
[INFO]  --> Fetching github.com/gorilla/mux.
[INFO]  --> Fetching github.com/miekg/pkcs11.
[INFO]  --> Fetching github.com/klauspost/cpuid.
[INFO]  --> Setting version for github.com/klauspost/cpuid to v1.0.
[INFO]  --> Fetching github.com/gorilla/context.
[ERROR] Failed to retrieve a list of dependencies: Error resolving imports
Makefile:36: recipe for target 'vendor' failed
make: *** [vendor] Error 1
subfuzion commented 7 years ago

@bquenin Yes, it's thanks to .glide/cache/src/https-github.com-gogo-protobuf/types, but I thought this was already resolved when you updated the import references before DockerCon...