Skip to content
This repository has been archived by the owner on Feb 26, 2019. It is now read-only.

[RFC] godep list #484

Closed
wants to merge 1 commit into from
Closed

[RFC] godep list #484

wants to merge 1 commit into from

Conversation

freeformz
Copy link

@freeformz freeformz commented Jun 2, 2016

godep list should output what it thinks the state of packages are. This is mostly where is finds packages, so break it down by where a package is found. Packages that are main packages are surrounded by "()".

Proposed output for a list command:

$ godep list -goroot
/Users/emuller/go/src/github.com/heroku/log-shuttle
    Local
        github.com/heroku/log-shuttle
        (github.com/heroku/log-shuttle/cmd/main/log-shuttle)
    Godeps/_workspace/src
        X
        Y
        Z
    vendor/
        github.com/heroku/rollrus
        (github.com/mattes/migrate)
    $GOPATH
        /home/foo/go/src
            github.com/heroku/slog
        /home/foo/go2/src
            D
    $GOROOT
        /usr/local/go/src
            net
            foo
            bar
    MISSING
        github.com/foozle/bazzle
$ godep list -json -goroot
{
    "Location": "/Users/emuller/go/src/github.com/heroku/log-shuttle",
    "Local" : [
        "github.com/heroku/log-shuttle",
        "(github.com/heroku/log-shuttle/cmd/main/log-shuttle)"
    ],
    "Godeps/_workspace/src":[
        "X", "Y", "Z"
        ],
    "vendor": [
        "github.com/heroku/rollrus",
        "(github.com/mattes/migrate)"
    ],
    "$GOPATH": {
        "/home/foo/go/src": [
          "github.com/heroku/slog"
        ],
        "/home/foo/go2/src": [
            "D"
        ]
    },
    "$GOROOT": {
        "/usr/local/go/src": [
            "net",
            "foo",
            "bar"
        ]
    },
    "MISSING": [
        "github.com/foozle/bazzle"
    ]
}

Some things to consider, that currently aren't included: How should version information be relayed? In the txt output an @v1 or something could be appended/prepended to the line, but for JSON the structure would likely need to change.

@freeformz freeformz changed the title [WIP] godep list [RFC] godep list Jun 3, 2016
@owenthereal
Copy link

👍

@freeformz
Copy link
Author

Thanks, but I am closing this PR because the repo is going to be archived.

@freeformz freeformz closed this Feb 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants