From f264d01568d1e2476fee461e9cf84037016f8423 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Laitl?= Date: Fri, 13 Sep 2024 12:13:41 +0200 Subject: [PATCH] Fix build of testing Docker images by pinning golang to 1.22 Thanks to great pointer by @sqrtsanta in https://github.com/tonarino/innernet/pull/320#issuecomment-2337438311 --- docker-tests/Dockerfile.innernet | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker-tests/Dockerfile.innernet b/docker-tests/Dockerfile.innernet index aef06ea..7e96cae 100644 --- a/docker-tests/Dockerfile.innernet +++ b/docker-tests/Dockerfile.innernet @@ -1,7 +1,10 @@ #################################################################################################### ## WireGuard #################################################################################################### -FROM golang:bookworm as wireguard + +# Pin go 1.22 as the latest tag of wireguard-go (0.0.20230223) doesn't build with go 1.23+ due to +# its outdated x/net dependency. We can use latest go once they release newer version. +FROM golang:1.22-bookworm as wireguard ARG wg_go_tag=0.0.20230223 RUN mkdir /repo \