Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

version: Move vX.Y.Z to version.go so it works with go get, add git info #304

Merged
merged 1 commit into from
Apr 1, 2019

Commits on Mar 5, 2019

  1. version: Move vX.Y.Z to version.go so it works with go get, add git…

    … info
    
    Previously, building with `make` was required for `version` command to
    output v0.15.0; `go get` or `go build` would always tell you v0.0.0-unset.
    
    Now the basic vX.Y.Z is always available, and when building with `make`
    git information is appended:
    
    $ go run . version
    v0.15.0 built from git (unknown)
    $ out/container-diff version
    v0.15.0 built from git v0.15.0-1-gcd5a837-dirty
    cben committed Mar 5, 2019
    Configuration menu
    Copy the full SHA
    91e0989 View commit details
    Browse the repository at this point in the history