mattn/gom

Install part of repository with custom :command

fzerorubigd opened this issue · 0 comments

I use gom mostly for use our mirrored repository. for example (since Iran's firewall blocked bitbucket.org for any reason that I don't know and can't understand) we mirror the goose repository in a locally installed gitlab repository (go get can not understand gitlab :/ ).
now this line :

gom 'bitbucket.org/liamstask/goose/cmd/goose', :command => 'git clone http://example.com/mirrors/goose.git'

is not working. its clone the repo inside the src/bitbucket.org/liamstask/goose/cmd/goose which is not correct.
Also this :

gom 'bitbucket.org/liamstask/goose', :command => 'git clone http://example.com/mirrors/goose.git'

Is failed. since there is no go file in root of this repository. (this repository is just an example, and we have this problem with some other repository too)

Is there anything I can do to fix this? any hack or even a feature that I can implement, please let me know.

Thanks.