Skip to content

Commit

Permalink
Update ldflags
Browse files Browse the repository at this point in the history
  • Loading branch information
k1LoW committed Mar 9, 2019
1 parent 7117b24 commit 4120130
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ builds:
- linux
- darwin
- windows
ldflags:
- -s -w -X github.com/k1LoW/tbls.version={{.Version}} -X github.com/k1LoW/tbls.commit={{.FullCommit}} -X github.com/k1LoW/tbls.date={{.Date}} -X github.com/k1LoW/tbls/version.Version={{.Version}}
archive:
name_template: '{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
format_overrides:
Expand Down
10 changes: 0 additions & 10 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,13 @@
package main

import (
"strings"

_ "github.com/go-sql-driver/mysql"
_ "github.com/lib/pq"
_ "github.com/mattn/go-sqlite3"

"github.com/k1LoW/tbls/cmd"
v "github.com/k1LoW/tbls/version"
)

var (
version = "dev"
commit = "none"
date = "unknown"
)

func main() {
v.Version = strings.TrimLeft(version, "v")
cmd.Execute()
}

0 comments on commit 4120130

Please sign in to comment.