gpm icon indicating copy to clipboard operation
gpm copied to clipboard

simplify installing non-head depdendencies

Open tcurdt opened this issue 10 years ago • 3 comments

I would be much easier if if gpm install would print the hash of library that gets installed. So one could start off with no hash/tag, do the install and then set the deps to that. Or even better:

gpm install github.com/golang/glog --save

which would add the dep (include the hash) to the Godep file.

tcurdt avatar Feb 15 '15 18:02 tcurdt

I see this as a different command, maybe, mimicking what dep does for the same use case:

$ gpm add github.com/golang/glog

it would install the dependency and add the latest hash to the Godeps file, I'll probably prototype it in a gpm plugin, not sure whether we want it in core yet, but I've definitely felt the need of a handy way to add dependencies.

What do you think?

pote avatar Feb 19 '15 17:02 pote

Like it. Makes sense.

...as long as it ends up in core eventually I am happy with that :)

tcurdt avatar Feb 19 '15 17:02 tcurdt

+1

did this get released ?

c0ze avatar Jan 20 '17 07:01 c0ze