From 7f06b53af964e2372cc78de31392e2194aaf73ee Mon Sep 17 00:00:00 2001 From: QRaimbault Date: Sat, 11 Jul 2020 16:00:08 +0200 Subject: [PATCH] Build: Fix GoReleaser ldflags --- .goreleaser.yml | 4 ++-- go.mod | 2 +- main.go | 2 +- main_nobuild.go | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index c17a261..bc93e6c 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -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 diff --git a/go.mod b/go.mod index b9f76c4..96e6725 100644 --- a/go.mod +++ b/go.mod @@ -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 diff --git a/main.go b/main.go index 1e9cc41..6d497d6 100644 --- a/main.go +++ b/main.go @@ -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 diff --git a/main_nobuild.go b/main_nobuild.go index e718c21..02bfb58 100644 --- a/main_nobuild.go +++ b/main_nobuild.go @@ -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") }