Open saurabh-deochake opened 7 years ago
@saurabh-deochake did you tried with "glide cc" command?
I agree with @PatrykMatyjasek - posted logs point that cached deps are used and that might be a root cause of your issue - [DEBUG] Trying to open github.com/intelsdi-x/snap/control/plugin/encoding (/root/.glide/cache/src/https-github.com-intelsdi-x-snap/control/plugin/encoding)
Thank you for your reply @PatrykMatyjasek and @IzabellaRaulin. I tried glide cc
, however I am still getting the same problem. I also get Cannot detect CVS
errors for golang.org/x/sys/unix and gopkg.in/yaml.v2.
I posting some excerpts of the glide --debug
here:
...
...
[WARN] Unable to checkout github.com/intelsdi-x/snap
[ERROR] Error looking for github.com/intelsdi-x/snap/control/plugin: Unable to get repository
..
[DEBUG] Missing github.com/intelsdi-x/snap/control/plugin/cpolicy. Trying to resolve.
[DEBUG] Dependency github.com/intelsdi-x/snap has already been pinned. Fetching updates skipped
[DEBUG] Dependency github.com/intelsdi-x/snap has already been pinned. Setting version skipped
[DEBUG] Package github.com/intelsdi-x/snap/core imports github.com/intelsdi-x/snap/core/cdata
[DEBUG] Missing github.com/intelsdi-x/snap/core/cdata. Trying to resolve.
[DEBUG] Dependency github.com/intelsdi-x/snap has already been pinned. Fetching updates skipped
[DEBUG] Dependency github.com/intelsdi-x/snap has already been pinned. Setting version skipped
[DEBUG] Package github.com/intelsdi-x/snap/core imports github.com/intelsdi-x/snap/core/serror
[DEBUG] Missing github.com/intelsdi-x/snap/core/serror. Trying to resolve.
[DEBUG] Dependency github.com/intelsdi-x/snap has already been pinned. Fetching updates skipped
[DEBUG] Dependency github.com/intelsdi-x/snap has already been pinned. Setting version skipped
[DEBUG] Package github.com/intelsdi-x/snap/core imports github.com/intelsdi-x/snap/pkg/fileutils
[DEBUG] Missing github.com/intelsdi-x/snap/pkg/fileutils. Trying to resolve.
[DEBUG] Dependency github.com/intelsdi-x/snap has already been pinned. Fetching updates skipped
[DEBUG] Dependency github.com/intelsdi-x/snap has already been pinned. Setting version skipped
[DEBUG] Package github.com/intelsdi-x/snap/core imports github.com/intelsdi-x/snap/pkg/schedule
[DEBUG] Missing github.com/intelsdi-x/snap/pkg/schedule. Trying to resolve.
[DEBUG] Dependency github.com/intelsdi-x/snap has already been pinned. Fetching updates skipped
[DEBUG] Dependency github.com/intelsdi-x/snap has already been pinned. Setting version skipped
[DEBUG] Package github.com/intelsdi-x/snap/core imports github.com/intelsdi-x/snap/scheduler/wmap
[DEBUG] Missing github.com/intelsdi-x/snap/scheduler/wmap. Trying to resolve.
[DEBUG] Dependency github.com/intelsdi-x/snap has already been pinned. Fetching updates skipped
[DEBUG] Dependency github.com/intelsdi-x/snap has already been pinned. Setting version skipped
[DEBUG] Trying to open github.com/Sirupsen/logrus (/root/.glide/cache/src/https-github.com-Sirupsen-logrus)
[DEBUG] Package github.com/Sirupsen/logrus imports golang.org/x/crypto/ssh/terminal
[DEBUG] Missing golang.org/x/crypto/ssh/terminal. Trying to resolve.
[INFO] --> Fetching golang.org/x/crypto/ssh/terminal
[WARN] Unable to checkout golang.org/x/crypto/ssh/terminal
[ERROR] Error looking for golang.org/x/crypto/ssh/terminal: Cannot detect VCS
...
...
[WARN] Unable to checkout golang.org/x/sys/unix
[ERROR] Error looking for golang.org/x/sys/unix: Cannot detect VCS
[DEBUG] Trying to open github.com/intelsdi-x/snap-plugin-utilities/config (/root/.glide/cache/src/https-github.com-intelsdi-x-snap-plugin-utilities/config)
[DEBUG] ImportDir error on /root/.glide/cache/src/https-github.com-intelsdi-x-snap-plugin-utilities/config: open /root/.glide/cache/src/https-github.com-intelsdi-x-snap-plugin-utilities/config: no such file or directory
...
...
[DEBUG] Missing gopkg.in/yaml.v2. Trying to resolve.
[INFO] --> Fetching gopkg.in/yaml.v2
[WARN] Unable to checkout gopkg.in/yaml.v2
[ERROR] Error looking for gopkg.in/yaml.v2: Cannot detect VCS
[DEBUG] Trying to open github.com/intelsdi-x/snap-plugin-utilities/config (/root/.glide/cache/src/https-github.com-intelsdi-x-snap-plugin-utilities/config)
[DEBUG] Package github.com/intelsdi-x/snap-plugin-utilities/config imports github.com/intelsdi-x/snap/control/plugin
[DEBUG] Missing github.com/intelsdi-x/snap/control/plugin. Trying to resolve.
...
...
[ERROR] Failed to retrieve a list of dependencies: Error resolving imports
Am I missing anything?
Snap daemon version (use
snapteld -v
): snapteld version 1.3.0Environment:
Cloud provider or hardware configuration:
OS (e.g. from /etc/os-release):
Kernel (e.g.
uname -a
): Linux node2 3.10.0-514.21.1.el7.x86_64 #1 SMP Thu May 25 17:04:51 UTC 2017 x86_64 x86_64 x86_64 GNU/LinuxRelevant tools (e.g. plugins used with Snap): snap-plugin-collector-pciessd, snap-plugin-publisher-file, snap-plugin-collector-disk
Others (e.g. deploying with Ansible):
What happened: Upon
make
of source code, I get above error of[ERROR] Failed to retrieve a list of dependencies: Error resolving imports
What you expected to happen:
make
builds the plugin in ./build/Steps to reproduce it (as minimally and precisely as possible):
make
Anything else do we need to know (e.g. issue happens only occasionally): Upon reviewing glide logs using
glide --debug up
, I found out that it cannot find a packagefileutils
at github.com/intelsdi-x/snap/pkg/fileutils.Posting a snapshot of logs here: