Skip to content

Commit

Permalink
Build: Fix GoReleaser ldflags
Browse files Browse the repository at this point in the history
  • Loading branch information
qraimbault committed Jul 11, 2020
1 parent 7f94e97 commit 7f06b53
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ builds:
- CGO_ENABLED=0
ldflags:
- -s -w
- -X github.com/forsam-education/cerberus/utils.VersionHash=`git rev-parse HEAD`
- -X github.com/forsam-education/cerberus/utils.BuildTime=`date +%Y-%m-%dT%T%z`
- -X 'github.com/forsam-education/cerberus/utils.VersionHash=`git rev-parse HEAD`'
- -X 'github.com/forsam-education/cerberus/utils.BuildTime=`date +%Y-%m-%dT%T%z`'
archives:
- format: tar.gz
wrap_in_directory: true
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/forsam-education/cerberus

go 1.12
go 1.14

require (
github.com/DATA-DOG/go-sqlmock v1.4.0 // indirect
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build go1.12
// +build go1.14

//go:generate sqlboiler -c ./build/sqlboiler.toml --no-context --add-global-variants mysql
package main
Expand Down
4 changes: 2 additions & 2 deletions main_nobuild.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// +build !go1.12
// +build !go1.14

package main

func main() {
panic("You must use a go version superior to 1.12")
panic("You must use a go version superior to 1.14")
}

0 comments on commit 7f06b53

Please sign in to comment.