whyrusleeping / gx

A package management tool
MIT License
1.88k stars 110 forks source link

Link a `gx` version/hash with a `git` hash #190

Open schomatis opened 6 years ago

schomatis commented 6 years ago

Is there a way to know, in the case git is used, what is the hash of the commit that was published in lastpubver? And if not, could that be added (as an option) to lastpubver or package.json?

The only way I can think of right now is to look for the gx publish commit and do git rev-parse --short HEAD~1.

Stebalien commented 6 years ago

That's exactly what I do but yes, it would be nice to have this information committed (ideally in ~/.gx/gitcommit or something like that). I could have sworn there was an issue for this but I guess not...

schomatis commented 6 years ago

Related to https://github.com/whyrusleeping/gx/issues/82 (augment lastpubver).