glide-report
glide-report copied to clipboard
glide-report fails if there is no .glide/cache/info/foo.json file
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