From 941d1e06c51ce5d7f03eba8115b254a75262d44e Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 1 Dec 2022 19:00:48 +0100 Subject: [PATCH] fix(build): downgrade xgo to 1.19.2 so that builds work again See https://github.com/techknowlogick/xgo/issues/187 --- .drone.yml | 12 ++++++------ Dockerfile | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.drone.yml b/.drone.yml index 40e6bef42e..dc910830b8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -377,7 +377,7 @@ steps: event: [ push, tag, pull_request ] - name: before-static-build - image: techknowlogick/xgo:latest + image: techknowlogick/xgo:go-1.19.2 pull: true commands: - export PATH=$PATH:$GOPATH/bin @@ -386,7 +386,7 @@ steps: depends_on: [ fetch-tags, mage ] - name: static-build-windows - image: techknowlogick/xgo:latest + image: techknowlogick/xgo:go-1.19.2 pull: true environment: # This path does not exist. However, when we set the gopath to /go, the build fails. Not sure why. @@ -399,7 +399,7 @@ steps: depends_on: [ before-static-build ] - name: static-build-linux - image: techknowlogick/xgo:latest + image: techknowlogick/xgo:go-1.19.2 pull: true environment: # This path does not exist. However, when we set the gopath to /go, the build fails. Not sure why. @@ -412,7 +412,7 @@ steps: depends_on: [ before-static-build ] - name: static-build-darwin - image: techknowlogick/xgo:latest + image: techknowlogick/xgo:go-1.19.2 pull: true environment: # This path does not exist. However, when we set the gopath to /go, the build fails. Not sure why. @@ -435,7 +435,7 @@ steps: - ./mage-static release:compress - name: after-build-static - image: techknowlogick/xgo:latest + image: techknowlogick/xgo:go-1.19.2 pull: true depends_on: - after-build-compress @@ -719,6 +719,6 @@ steps: - failure --- kind: signature -hmac: 768d54fc8433705fb63f754adf19536a16152a4046a040afdbcbb7df60614056 +hmac: 4bd42cd21b4861300b8fdc2fc130e3da23e6008fbea996efcf03dc92bf43b063 ... diff --git a/Dockerfile b/Dockerfile index f1094d3a22..b2f479f662 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ ############## # Build stage -FROM --platform=$BUILDPLATFORM techknowlogick/xgo:latest AS build-env +FROM --platform=$BUILDPLATFORM techknowlogick/xgo:go-1.19.2 AS build-env RUN \ go install github.com/magefile/mage@latest && \