Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glide-report fails if there is no .glide/cache/info/foo.json file #4

Open
szuecs opened this issue Sep 15, 2016 · 0 comments · May be fixed by #5
Open

glide-report fails if there is no .glide/cache/info/foo.json file #4

szuecs opened this issue Sep 15, 2016 · 0 comments · May be fixed by #5

Comments

@szuecs
Copy link

szuecs commented Sep 15, 2016

Hi!

Thanks for this software it looks really promising.
In my project https://github.com/szuecs/go-gin-webapp I tested glide, today.
Doing a glide init, glide i, change manually a version in glide.yaml and then do a glide up.

Then I tested glide-report to keep track of outdated dependencies. Here is what happens:

[sszuecs@sandor-lab:~/go/src/github.com/szuecs/go-gin-webapp]% glide-report 
[WARN]  Disclaimer, this report is to help highlight things to consider. It is
[WARN]  alpha software and the rules are still under consideration.
[INFO]  Reading glide.yaml file to understand configured versions and ranges
[INFO]  Reading glide.lock file to understand pinned revisions
[INFO]  Fetching dependency data, this may take a moment...
Report on github.com/szuecs/go-gin-webapp

------------------------------------------------------------------------------
Direct Imports
------------------------------------------------------------------------------

Analysis of github.com/DeanThompson/ginpprof:
● Dependency does not provide Semantic Version releases
● Using revision within three month from the tip of the branch (0 days)

Analysis of github.com/gin-gonic/gin:
✓ Dependency provides Semantic Version releases
✓ Using latest release (v0.6)

Analysis of github.com/golang/glog:
● Dependency does not provide Semantic Version releases
● Using revision within three month from the tip of the branch (0 days)

Analysis of github.com/zalando/gin-glog:
✓ Dependency provides Semantic Version releases
✓ Using latest release (1.1.0)

Analysis of github.com/zalando/gin-gomonitor:
✓ Dependency provides Semantic Version releases
✓ Using latest release (0.2.0)

Analysis of github.com/zalando/gin-oauth2:
✓ Dependency provides Semantic Version releases
● Using recent release (1 behind latest, latest: 1.4.0, using: 1.3.0)
✓ Using latest Major Semantic Version

Analysis of golang.org/x/crypto:
● Dependency does not provide Semantic Version releases
[ERROR] Unable to get cached repo data: open /home/sszuecs/.glide/cache/info/https-go.googlesource.com-crypto.json: no such file or directory

Creating the file with touch does not help:
[ERROR] Unable to get cached repo data: unexpected end of JSON input

If I create an empty dictionary json file {}, it will work.

Best, sandor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant