From 61016a800c0bb213f900e1ae107cab776f0a55e0 Mon Sep 17 00:00:00 2001 From: frozen <355847+Frozen@users.noreply.github.com> Date: Tue, 13 Feb 2024 21:22:59 -0400 Subject: [PATCH] go 1.20 --- .travis.yml | 2 +- Dockerfile | 2 +- api/service/legacysync/downloader/Proto.Dockerfile | 2 +- go.mod | 2 +- rosetta/infra/Dockerfile | 2 +- scripts/docker/Dockerfile | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 27e9a96ca..1f1833ad2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,7 @@ os: linux dist: jammy language: go go: - - 1.19.5 + - 1.20 go_import_path: github.com/harmony-one/harmony cache: directories: diff --git a/Dockerfile b/Dockerfile index 706de4ea1..481c072bd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM ubuntu:18.04 ARG TARGETARCH -ARG GOLANG_VERSION="1.19" +ARG GOLANG_VERSION="1.20" SHELL ["/bin/bash", "-c"] diff --git a/api/service/legacysync/downloader/Proto.Dockerfile b/api/service/legacysync/downloader/Proto.Dockerfile index 5591abb47..f2e889e5a 100644 --- a/api/service/legacysync/downloader/Proto.Dockerfile +++ b/api/service/legacysync/downloader/Proto.Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.19-bullseye +FROM golang:1.20-bullseye RUN apt update RUN apt install -y protobuf-compiler diff --git a/go.mod b/go.mod index ab90799dd..dfbd0fc67 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/harmony-one/harmony -go 1.19 +go 1.20 require ( github.com/RoaringBitmap/roaring v1.2.3 diff --git a/rosetta/infra/Dockerfile b/rosetta/infra/Dockerfile index 0b1424b22..35021a640 100644 --- a/rosetta/infra/Dockerfile +++ b/rosetta/infra/Dockerfile @@ -1,5 +1,5 @@ # Build -FROM golang:1.19 AS build +FROM golang:1.20 AS build RUN apt update -y && \ apt install libgmp-dev libssl-dev git -y && \ diff --git a/scripts/docker/Dockerfile b/scripts/docker/Dockerfile index ae37a225b..7091a0079 100644 --- a/scripts/docker/Dockerfile +++ b/scripts/docker/Dockerfile @@ -1,7 +1,7 @@ ARG GOPATH_DEFAULT=/root/go ARG SRC_PATH=src/github.com/harmony-one -FROM golang:1.19-bullseye as builder +FROM golang:1.20-bullseye as builder ARG GOPATH_DEFAULT ARG SRC_PATH