mattn / gom

Go Manager - bundle for go
1.38k stars 92 forks source link

generate gomfile with commit #43

Closed dworld closed 9 years ago

dworld commented 9 years ago

Can gom generate gomfile with commit info to freeze package version?

like

gom 'github.com/mattn/go-scan', :commit => 'ecb144fb1f2848a24ebfdadf8e64380406d87206'
...
mattn commented 9 years ago

Maybe, writing commit-hook like below.

#!/bin/sh
go gen gomfile
dworld commented 9 years ago

sorry, I mean generate gomfile with commit id. Then , gom install can install the version have thie commit id.

mattn commented 9 years ago

Then do gom lock

dworld commented 9 years ago

thanks