From 438325646acc01d78a75776cfafad86b3abc24ae Mon Sep 17 00:00:00 2001 From: Kevin Minehart Date: Mon, 7 Aug 2023 14:11:25 -0500 Subject: [PATCH] Update go version and fix new musl error (#112) --- containers/build_backend.go | 2 +- executil/go_build.go | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/containers/build_backend.go b/containers/build_backend.go index 97391f92..c83ec5b4 100644 --- a/containers/build_backend.go +++ b/containers/build_backend.go @@ -11,7 +11,7 @@ import ( ) const ( - GoImageAlpine = "golang:1.20.2-alpine" + GoImageAlpine = "golang:1.20.7-alpine" ) var GrafanaCommands = []string{ diff --git a/executil/go_build.go b/executil/go_build.go index 64acdbfb..c5d8aaff 100644 --- a/executil/go_build.go +++ b/executil/go_build.go @@ -107,6 +107,9 @@ func GoBuildEnv(opts *GoBuildOpts) map[string]string { if opts.CGOEnabled { env["CGO_ENABLED"] = "1" + + // https://github.com/mattn/go-sqlite3/issues/1164#issuecomment-1635253695 + env["CGO_CFLAGS"] = "-D_LARGEFILE64_SOURCE" } else { env["CGO_ENABLED"] = "0" }