From f878aed2d61442fa06a72dc90b07742cec32c8e2 Mon Sep 17 00:00:00 2001 From: Svetomir Smiljkovic Date: Tue, 24 Mar 2020 16:47:33 +0100 Subject: [PATCH] Upgrade golang version to v1.14 (#2144) --- .travis.yml | 14 +++++++------- Dockerfile | 2 +- Dockerfile.alltools | 2 +- README.md | 2 +- appveyor.yml | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4cdedcaf63..d57b9dc711 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,7 @@ jobs: - stage: lint os: linux dist: trusty - go: 1.13.x + go: 1.14.x env: - lint script: @@ -25,7 +25,7 @@ jobs: os: linux dist: trusty sudo: required - go: 1.13.x + go: 1.14.x script: - sudo modprobe fuse - sudo chmod 666 /dev/fuse @@ -35,7 +35,7 @@ jobs: - stage: build os: osx - go: 1.13.x + go: 1.14.x script: - echo "Increase the maximum number of open file descriptors on macOS" - NOFILE=20480 @@ -55,7 +55,7 @@ jobs: os: linux dist: trusty sudo: required - go: 1.13.x + go: 1.14.x env: - azure-linux addons: @@ -89,7 +89,7 @@ jobs: dist: trusty services: - docker - go: 1.13.x + go: 1.14.x env: - azure-linux-mips script: @@ -113,7 +113,7 @@ jobs: - stage: deploy if: type = push os: osx - go: 1.13.x + go: 1.14.x env: - azure-osx script: @@ -126,7 +126,7 @@ jobs: if: type = cron os: linux dist: trusty - go: 1.13.x + go: 1.14.x env: - azure-purge script: diff --git a/Dockerfile b/Dockerfile index 9e310aad59..3d04ebdd51 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.13-alpine as builder +FROM golang:1.14-alpine as builder RUN apk add --no-cache make gcc musl-dev linux-headers git ADD . /swarm WORKDIR /swarm diff --git a/Dockerfile.alltools b/Dockerfile.alltools index bee6d5319e..ef7a7aa6fe 100644 --- a/Dockerfile.alltools +++ b/Dockerfile.alltools @@ -1,4 +1,4 @@ -FROM golang:1.13-alpine as builder +FROM golang:1.14-alpine as builder RUN apk add --no-cache make gcc musl-dev linux-headers git ADD . /swarm WORKDIR /swarm diff --git a/README.md b/README.md index 97e882a999..19cbacb4dd 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ Swarm is a distributed storage platform and content distribution service, a nati ## Building the source -It's recommended to use Go 1.13 to build Swarm. +It's recommended to use Go 1.14 to build Swarm. To simply compile the `swarm` binary without a `GOPATH`: diff --git a/appveyor.yml b/appveyor.yml index c996e89a8a..ce729660af 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -27,8 +27,8 @@ environment: install: - git submodule update --init - rmdir C:\go /s /q - - appveyor DownloadFile https://dl.google.com/go/go1.13.windows-%APP_ARCH%.zip - - 7z x go1.13.windows-%APP_ARCH%.zip -y -oC:\ > NUL + - appveyor DownloadFile https://dl.google.com/go/go1.14.windows-%APP_ARCH%.zip + - 7z x go1.14.windows-%APP_ARCH%.zip -y -oC:\ > NUL - go version - gcc --version