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

--full-path option show the relative paths with the relative root #80

Closed
delphinus opened this issue Sep 20, 2016 · 2 comments · Fixed by #126
Closed

--full-path option show the relative paths with the relative root #80

delphinus opened this issue Sep 20, 2016 · 2 comments · Fixed by #126
Labels

Comments

@delphinus
Copy link

  1. Set relative paths in .gitconfig

    [ghq]
    root = ~/.go/src
    root = ./vendor
  2. Run ghq list with --full-path, -p option

    $ cd /path/to/some/golang/repo
    $ ghq list -p
    /Users/delphinus/.go/src/github.com/mattn/gom
    /Users/delphinus/.go/src/github.com/mattn/gover
    /Users/delphinus/.go/src/github.com/mattn/goveralls
    
    ...
    
    vendor/github.com/BurntSushi/toml
    vendor/github.com/urfave/cli

I think the last two paths should be absolute, such as...

/path/to/some/golang/repo/vendor/github.com/BurntSushi/toml
/path/to/some/golang/repo/vendor/github.com/urfave/cli

Is it the specification, or the bug?

@motemen
Copy link
Member

motemen commented Oct 3, 2016

Actually I have not imagined setting a relative path to ghq.root. Should be counted as a bug.

@motemen motemen added the bug label Oct 3, 2016
@delphinus
Copy link
Author

When I manage package dependencies in golang projects, I usually use package manager such as gom, glide,... that will clone packages below /path/to/projects/vendor directory.

I noticed this bug when I use unite-ghq (my self-made plugin) for Vim to show up that package dependencies list. I want to show local packages (below ./vendor/github.com/...) with global packages (below $GOPATH/github.com/...) by this plugin.

2016-10-05 23 53 18

I can deal with this case by rewriting paths in VimScript, but I would appreciate your fixing this bug.

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

Successfully merging a pull request may close this issue.

2 participants