Skip to content

Commit

Permalink
Merge pull request #129 from k1LoW/fix-goreleaser-build-option
Browse files Browse the repository at this point in the history
Fix .goreleaser build hooks
  • Loading branch information
k1LoW authored Jul 15, 2019
2 parents 80ea9b7 + 2f03f30 commit bc6ec8a
Show file tree
Hide file tree
Showing 6 changed files with 91 additions and 62 deletions.
12 changes: 6 additions & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ builds:
-
id: tbls-darwin
hooks:
pre: packr
post: packr clean
pre: packr2
post: packr2 clean
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}}
env:
Expand All @@ -19,8 +19,8 @@ builds:
-
id: tbls-linux
hooks:
pre: packr
post: packr clean
pre: packr2
post: packr2 clean
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}}
- -linkmode external
Expand All @@ -35,8 +35,8 @@ builds:
-
id: tbls-windows
hooks:
pre: packr
post: packr clean
pre: packr2
post: packr2 clean
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}}
- -extldflags '-static'
Expand Down
23 changes: 10 additions & 13 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
module github.com/k1LoW/tbls

require (
cloud.google.com/go v0.40.0
github.com/denisenkom/go-mssqldb v0.0.0-20190515213511-eb9f6a1743f3
cloud.google.com/go v0.41.0
github.com/denisenkom/go-mssqldb v0.0.0-20190710001350-29e7b2419f38
github.com/go-sql-driver/mysql v1.4.1
github.com/gobuffalo/packd v0.2.0 // indirect
github.com/gobuffalo/packr/v2 v2.4.0
github.com/googleapis/gax-go/v2 v2.0.5 // indirect
github.com/karrick/godirwalk v1.10.12 // indirect
github.com/gobuffalo/logger v1.0.1 // indirect
github.com/gobuffalo/packr/v2 v2.5.2
github.com/golang/protobuf v1.3.2 // indirect
github.com/labstack/gommon v0.2.9
github.com/lib/pq v1.1.1
github.com/loadoff/excl v0.0.0-20171207172601-c6a9e4c4b4c4
Expand All @@ -17,12 +16,10 @@ require (
github.com/pmezard/go-difflib v1.0.0
github.com/spf13/cobra v0.0.5
github.com/xo/dburl v0.0.0-20190203050942-98997a05b24f
go.opencensus.io v0.22.0 // indirect
golang.org/x/crypto v0.0.0-20190618222545-ea8f1a30c443 // indirect
golang.org/x/net v0.0.0-20190619014844-b5b0513f8c1b // indirect
golang.org/x/sys v0.0.0-20190618155005-516e3c20635f // indirect
google.golang.org/appengine v1.6.1 // indirect
google.golang.org/genproto v0.0.0-20190611190212-a7e196e89fd3 // indirect
google.golang.org/grpc v1.21.1 // indirect
golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4 // indirect
golang.org/x/net v0.0.0-20190628185345-da137c7871d7 // indirect
golang.org/x/sys v0.0.0-20190712062909-fae7ac547cb7 // indirect
google.golang.org/genproto v0.0.0-20190708153700-3bdd9d9f5532 // indirect
google.golang.org/grpc v1.22.0 // indirect
gopkg.in/yaml.v2 v2.2.2
)
Loading

0 comments on commit bc6ec8a

Please sign in to comment.