From 0b0967ff64ba1b60d425d5b030fa66e55f801f13 Mon Sep 17 00:00:00 2001 From: Kleonikos Kyriakis Date: Tue, 21 May 2024 16:55:44 +0300 Subject: [PATCH] [MOD] Upgrade go version to 1.20 --- Dockerfile | 2 +- go.mod | 2 +- scripts/build.sh | 8 +++++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 651ad26..e68a113 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Create base builder image -FROM golang:1.18.10-alpine3.17 AS builder +FROM golang:1.20-alpine AS builder WORKDIR /go/src/github.com/chain4travel/camino-signavault RUN apk add --no-cache alpine-sdk bash git make gcc musl-dev linux-headers git ca-certificates g++ libstdc++ diff --git a/go.mod b/go.mod index d8a047c..aa350f1 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/chain4travel/camino-signavault -go 1.18 +go 1.20 require ( github.com/ava-labs/avalanchego v1.9.4-rc.7 diff --git a/scripts/build.sh b/scripts/build.sh index 72278e0..b97613b 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -9,4 +9,10 @@ OUTPUT="signavault" echo "Building signavault..." go build -o "$OUTPUT" cmd/camino-signavault/main.go -echo "SUCCESS" \ No newline at end of file +if [[ -f "$OUTPUT" ]]; then + echo "Build Successful" + exit 0 +else + echo "Build failure" >&2 + exit 1 +fi