From 6050c4564a849db321483684f8108ba33b71f56e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20D=C3=BCren?= Date: Fri, 14 Mar 2025 23:08:40 +0100 Subject: [PATCH] Fix Go version compatibility by using auto toolchain --- start.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/start.sh b/start.sh index 48822fd..e129920 100644 --- a/start.sh +++ b/start.sh @@ -352,8 +352,8 @@ cd "$SERVER_DIR" # Set Go module cache to a writable location export GOPATH=/app/data/go export GO111MODULE=on -# Explicitly use Go 1.22.2 -export GOTOOLCHAIN=go1.22.2 +# Use auto toolchain to allow downloading required version +export GOTOOLCHAIN=auto # Override version requirements and force module mode export GOFLAGS="-mod=mod -modcacherw" # Create a temporary directory for Go module cache and build in writable area @@ -434,8 +434,8 @@ elif [ -d "$SERVER_DIR/cmd/museum" ]; then # Instead of modifying go.mod, set environment variables for compatibility echo "==> Setting Go environment variables for compatibility" export GOFLAGS="-mod=mod -modcacherw" - # Explicitly use Go 1.22.2 - export GOTOOLCHAIN=go1.22.2 + # Use auto toolchain to allow downloading required version + export GOTOOLCHAIN=auto # For Wasabi specific settings if [[ "${S3_ENDPOINT}" == *"wasabi"* ]]; then