Skip to content

Instantly share code, notes, and snippets.

@davidwalter0
Last active September 21, 2018 17:59
Show Gist options
  • Save davidwalter0/a4744b453c4975c49e0e835f7d7f8f89 to your computer and use it in GitHub Desktop.
Save davidwalter0/a4744b453c4975c49e0e835f7d7f8f89 to your computer and use it in GitHub Desktop.
vgo git version run as git vgo-version >> /tmp/vgo.version
[alias]
# create an un-versioned version faux tag string with v0.0.0-date-commit format
# github.com/davidwalter0/hello v0.0.0-20180519105930-66b6dd4eb1dd
vgo-version = "!TOP=$(git rev-parse --show-toplevel); git log -n 1 --abbrev=12 --date=format:'%Y%m%d%H%M%S' --pretty=format:\"${TOP#${GOPATH}/src/} v0.0.0-%cd-%h\";echo"
@davidwalter0
Copy link
Author

probably unnecessary with the recent updates to go1.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment