Skip to content

Commit

Permalink
ignore darwin/386 pair
Browse files Browse the repository at this point in the history
  • Loading branch information
cenkalti committed Aug 18, 2020
1 parent 04822f5 commit dcef76c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 13 deletions.
20 changes: 11 additions & 9 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,20 @@ before:
hooks:
- go mod download
builds:
- env:
- CGO_ENABLED=0
-
main: ./cmd/putio-sync/main.go
ldflags:
- -s -w -X main.Version={{.Version}}
goos:
- linux
- darwin
- windows
- linux
- darwin
- windows
goarch:
- "386"
- amd64
- "386"
- amd64
ignore:
- goos: darwin
goarch: 386
env:
- CGO_ENABLED=0
archives:
- format: tar.gz
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
Expand Down
11 changes: 7 additions & 4 deletions cmd/putio-sync/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ import (
putiosync "github.com/putdotio/putio-sync/v2"
)

// Version of client. Set during build.
// "0.0.0" is the development version.
var Version = "0.0.0"
// These variables are set by goreleaser on build.
var (
version = "0.0.0"
commit = ""
date = ""
)

// TODO HTTP API
// TODO websocket endpoint for progress updates
Expand Down Expand Up @@ -73,7 +76,7 @@ func main() {
var err error
flag.Parse()
if *versionFlag {
fmt.Println(Version)
fmt.Printf("%s (%s) [%s]", version, commit, date)
return
}
if *debugFlag {
Expand Down

0 comments on commit dcef76c

Please sign in to comment.