samuong / alpaca

A local HTTP proxy for command-line tools. Supports PAC scripts and NTLM authentication.
Apache License 2.0
184 stars 31 forks source link

Versioning #11

Closed samuong closed 2 years ago

samuong commented 5 years ago

Alpaca releases should be given a version number and this version should be made visible via a -version flag and/or printed in the logs.

There is currently no concept of a "release" in Alpaca, so resolving this issue would require a build/release pipeline to be set up.

rtfmoz2 commented 2 years ago

git describe --tags | head -1 will give you latest release tag on the current cloned repo. If you are using macos you can get the version number with the following variable substitution in KSH.

VER=`git describe --tags | head -1`
VER=${VER#v}
VER=${VER%-*-*}
rtfmoz2 commented 2 years ago

This seems to indicate that versioning is happening around go modules automatically without there being explicit code - https://go.dev/blog/publishing-go-modules