Use ldflags for version

pull/49/head 1.4.0
Miguel Mota 5 years ago
parent ab0c3c77c3
commit c9211b53fd

@ -6,3 +6,5 @@ builds:
- linux
goarch:
- amd64
ldflags:
- -X main.version={{.Env.VERSION}}

@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [1.4.0] - 2019-11-17
### Added
- Keyboard shortcuts to enlarge and shorten chart.
## [1.3.6] - 2019-09-15
### Fixed
- Fixed various navigation and view switching issues

@ -168,4 +168,4 @@ git/repack:
release:
rm -rf dist
goreleaser
VERSION=$(VERSION) goreleaser

@ -5,8 +5,8 @@ import (
"os"
)
// TODO: make dynamic based on git tag
const version = "1.3.6"
// version is the cointop version which will be populated by ldflags
var version string
// Version returns the cointop version
func (ct *Cointop) Version() string {

Loading…
Cancel
Save