Fix Go version compatibility by using auto toolchain
This commit is contained in:
parent
1f7de4085d
commit
6050c4564a
8
start.sh
8
start.sh
@ -352,8 +352,8 @@ cd "$SERVER_DIR"
|
|||||||
# Set Go module cache to a writable location
|
# Set Go module cache to a writable location
|
||||||
export GOPATH=/app/data/go
|
export GOPATH=/app/data/go
|
||||||
export GO111MODULE=on
|
export GO111MODULE=on
|
||||||
# Explicitly use Go 1.22.2
|
# Use auto toolchain to allow downloading required version
|
||||||
export GOTOOLCHAIN=go1.22.2
|
export GOTOOLCHAIN=auto
|
||||||
# Override version requirements and force module mode
|
# Override version requirements and force module mode
|
||||||
export GOFLAGS="-mod=mod -modcacherw"
|
export GOFLAGS="-mod=mod -modcacherw"
|
||||||
# Create a temporary directory for Go module cache and build in writable area
|
# 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
|
# Instead of modifying go.mod, set environment variables for compatibility
|
||||||
echo "==> Setting Go environment variables for compatibility"
|
echo "==> Setting Go environment variables for compatibility"
|
||||||
export GOFLAGS="-mod=mod -modcacherw"
|
export GOFLAGS="-mod=mod -modcacherw"
|
||||||
# Explicitly use Go 1.22.2
|
# Use auto toolchain to allow downloading required version
|
||||||
export GOTOOLCHAIN=go1.22.2
|
export GOTOOLCHAIN=auto
|
||||||
|
|
||||||
# For Wasabi specific settings
|
# For Wasabi specific settings
|
||||||
if [[ "${S3_ENDPOINT}" == *"wasabi"* ]]; then
|
if [[ "${S3_ENDPOINT}" == *"wasabi"* ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user