upgrade go version to 1.16

pull/3693/head
Alex Chen 4 years ago
parent dfe26d424e
commit 45b90e9b3b
  1. 2
      .travis.yml
  2. 2
      Dockerfile
  3. 2
      README.md
  4. 2
      go.mod
  5. 2
      rosetta/infra/Dockerfile

@ -2,7 +2,7 @@ os: linux
dist: bionic dist: bionic
language: go language: go
go: go:
- 1.14 - 1.16
go_import_path: github.com/harmony-one/harmony go_import_path: github.com/harmony-one/harmony
cache: cache:
directories: directories:

@ -13,7 +13,7 @@ ENV BLS_DIR=${HMY_PATH}/bls
ENV CGO_CFLAGS="-I${BLS_DIR}/include -I${MCL_DIR}/include" ENV CGO_CFLAGS="-I${BLS_DIR}/include -I${MCL_DIR}/include"
ENV CGO_LDFLAGS="-L${BLS_DIR}/lib" ENV CGO_LDFLAGS="-L${BLS_DIR}/lib"
ENV LD_LIBRARY_PATH=${BLS_DIR}/lib:${MCL_DIR}/lib ENV LD_LIBRARY_PATH=${BLS_DIR}/lib:${MCL_DIR}/lib
ENV GIMME_GO_VERSION="1.14.1" ENV GIMME_GO_VERSION="1.16.3"
ENV PATH="/root/bin:${PATH}" ENV PATH="/root/bin:${PATH}"
RUN apt-get update -y RUN apt-get update -y

@ -16,7 +16,7 @@ http://api.hmny.io/
## Requirements ## Requirements
### **Go 1.14.7** ### **Go 1.16.3**
### **GMP and OpenSSL** ### **GMP and OpenSSL**
On macOS: On macOS:

@ -1,6 +1,6 @@
module github.com/harmony-one/harmony module github.com/harmony-one/harmony
go 1.14 go 1.16
require ( require (
github.com/VictoriaMetrics/fastcache v1.5.7 // indirect github.com/VictoriaMetrics/fastcache v1.5.7 // indirect

@ -1,5 +1,5 @@
# Build # Build
FROM golang:1.14 AS build FROM golang:1.16 AS build
RUN apt update -y && \ RUN apt update -y && \
apt install libgmp-dev libssl-dev git -y && \ apt install libgmp-dev libssl-dev git -y && \

Loading…
Cancel
Save