Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(version): append commit hash on build via ldflags #342

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on May 29, 2024

  1. feat(version): append commit hash on build via ldflags

    It standardize resonate binary version to:
    
    resonate version v<VERSION>[-<PRE_RELEASE>-<TIMESTAMP>][ COMMIT_HASH] <GOOS>/<GOARCH>
    
    where:
    
    - `VERSION`: the release version
    - `PRE_RELEASE`: can be any arbitrary string, e.g. `alpha`, `beta`, `rc.1`, etc
    - `TIMESTAMP`: the yyyymmdd of build IF this is not a GA release
    - `COMMIT_HASH`: short revision IF this is a GA release
    - `GOOS`: underlying OS this binary built on
    - `GOARCH`: underlying Architecture this binary built on
    
    This also adds a new `version` subcommand for convenience and to not
    give an error on `resonate version` for folks with muscle memory for
    it.
    
    Signed-off-by: Khosrow Moossavi <[email protected]>
    khos2ow committed May 29, 2024
    Configuration menu
    Copy the full SHA
    b2a6bd0 View commit details
    Browse the repository at this point in the history