From 71fc95e8d13880cf57dd777e50ebe486c93669bf Mon Sep 17 00:00:00 2001 From: Alessio Date: Mon, 19 Feb 2024 23:41:33 -0800 Subject: [PATCH] Pin golang:alpine docker container to v1.21.4 because v1.22 is crashing when compiling go-sqlite3 --- .woodpecker/docker/go-mingw.dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.woodpecker/docker/go-mingw.dockerfile b/.woodpecker/docker/go-mingw.dockerfile index 40ac2d7..fca83c9 100644 --- a/.woodpecker/docker/go-mingw.dockerfile +++ b/.woodpecker/docker/go-mingw.dockerfile @@ -1,4 +1,6 @@ -from golang:alpine +# Use Alpine because it comes with musl by default; point of this build is to staticallly compile libc +# Pinning version 1.21.4 because 1.22 crashes when compiling go-sqlite3 on something in `sqlite3-binding.c`. +from golang:1.21.4-alpine run apk add --no-cache git sqlite-libs sqlite-dev build-base mingw-w64-gcc curl vim