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 - linux
goarch: goarch:
- amd64 - 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/), 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). 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 ## [1.3.6] - 2019-09-15
### Fixed ### Fixed
- Fixed various navigation and view switching issues - Fixed various navigation and view switching issues

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

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

Loading…
Cancel
Save