masterminds / glide-report Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
go 1.7
x-MacBook-Pro:src apple$ go env
GOARCH="amd64"
GOBIN="/Users/apple/workspace/go/bin"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/apple/workspace/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/wp/ff6sz9qs6g71jnm12nj2kbyw0000gp/T/go-build607909689=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
x-MacBook-Pro:src apple$
x-MacBook-Pro:src apple$ go get -u github.com/Masterminds/glide-report
# cd /Users/apple/workspace/go/src/github.com/codegangsta/cli; git pull --ff-only
You are not currently on a branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.
git pull <remote> <branch>
package github.com/codegangsta/cli: exit status 1
x-MacBook-Pro:src apple$
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
Not sure what was going on here. I'm a Godep user, but wanted to see if I had out of date dependencies. I was only able to get a bunch of errors such as in the title as well as:
[ERROR] Error scanning github.com/xxxxx: open /Users/user/.glide/cache/src/xxxxx: 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.
Not sure what to do.
Hi,
We use Gitlab internally and some of our projects have dependencies which are pulled in from there. Glide Report seems to want to access those repositories via HTTPS rather than SSH, resulting in a login prompt. Projects with multiple dependencies have the username/password prompts all outputted at the same time:
[INFO] glide.lock not found, attempting to generate. This may take a moment...
Username for 'https://gitlab': Username for 'https://gitlab.acme.com: Username for 'https://gitlab.acme.com': Username for 'https://gitlab.acme.com': Username for 'https://gitlab.acme.com': Username for 'https://gitlab.acme.com':
We're using Godep, and as far as I can tell there is no reference to HTTPS repositories in dependencies list.
I'm getting failures of glide-report when there are repositories with custom aka "vanity" paths such as golang.org/x/crypto that require dynamic lookup.
Here's how to replicate:
go get github.com/dmitris/deptest
cd $GOPATH/src/github.com/dmitris/deptest
glide-report
rm -fr ~/.glide/cache/
$ $GOPATH/bin/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 .
------------------------------------------------------------------------------
Direct Imports
------------------------------------------------------------------------------
Analysis of golang.org/x/crypto:
● Dependency does not provide Semantic Version releases
[ERROR] Unable to get cached repo data: open /Users/dmitris/.glide/cache/info/https-go.googlesource.com-crypto.json: no such file or directory
I believe this happens due to the logic in https://github.com/Masterminds/glide/blob/master/cfg/config.go#L470-L471 which just adds https:// to the Dependency's Name (d.Name) and does not do a dynamic lookup necessary for custom/vanity import paths such as "golang.org/x/crypto". #4 is possibly related (since it also mentiones a repo with custom import path).
I have a proposed PR for glide/cfg that fixes the issue (by adding a call to vcs.NewRepo which performs a dynamic lookup if needed) and will submit it in a moment.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.