Full Commit Hashes in go.mod

95 views
Skip to first unread message

man...@blackduckcloud.com

unread,
Oct 7, 2019, 4:09:37 PM10/7/19
to golang-nuts
Hi All! 

I was working on a project that ingests information about sources used a Go project, and was wondering if there was a flag that could generate a go mod file with a full commit hash instead of just pseudo versions. If not, where could I post to request to make one? 

Let me know and I can share more info. 

Pranay Mankad

anderson...@blacklane.com

unread,
Oct 8, 2019, 4:06:56 AM10/8/19
to golang-nuts
Hi Pranay,

There is no option to change the pseudo-version format. However the last part is the prefix of the commit hash. You can see more here in the docs.

Regarding to ask for this feature, you can file a issue on Go's github

Best,
Anderson
Reply all
Reply to author
Forward
0 new messages