Unverified Commit ad695008 authored by Roberto Sora's avatar Roberto Sora Committed by GitHub

Bump golang version to 1.13 (#412)

* bump golang version to 1.13 in go.mod file and run build

* bump golang version to 1.13 in Dockerfiles

* delete deprecated CI dockerfile

* bump golang version in github workflows

* fix goreleaser command to build locally

* fix typo in README
parent 926ac7c0
......@@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
container:
image: arduino/arduino-cli:builder-0.1
image: arduino/arduino-cli:builder-1
volumes:
# cache go dependencies across pipeline's steps
- $PWD/go:/go
......
......@@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
container:
image: arduino/arduino-cli:builder-0.1
image: arduino/arduino-cli:builder-1
volumes:
# cache go dependencies across pipeline's steps
- $PWD/go:/go
......
......@@ -21,7 +21,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: '1.12.x'
go-version: '1.13'
- name: Install Go deps
run: |
......
FROM golang:1.12
RUN apt-get update && apt-get install -y --no-install-recommends \
bzip2 \
unzip \
&& rm -rf /var/lib/apt/lists/*
ENV PROTOBUF_VER 3.9.1
ENV PATH="/miniconda/bin:${PATH}"
# NOTE: most of the following assume WORDKIR is '/'
RUN set -ex \
# Task executor, will be installed in /bin
&& curl -sL https://taskfile.dev/install.sh | sh \
# Codecov uploader
&& curl -o /bin/codecov -LO https://codecov.io/bash && chmod +x /bin/codecov \
# Go runtime dependencies
&& go get github.com/golangci/govet \
&& go get golang.org/x/lint/golint \
# Protobuf tooling
&& go get github.com/golang/protobuf/protoc-gen-go \
&& mkdir protobuf && cd protobuf \
&& curl -LO https://github.com/google/protobuf/releases/download/v$PROTOBUF_VER/protoc-$PROTOBUF_VER-linux-x86_64.zip \
&& unzip protoc-$PROTOBUF_VER-linux-x86_64.zip \
&& cp ./bin/* /bin/ \
# protoc will search for default includes in the path of the binary
&& cp -r ./include /bin/ \
&& cd .. && rm -rf protobuf \
# Install a recent version of Python
&& curl -o $HOME/miniconda.sh -LO https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
&& chmod +x $HOME/miniconda.sh && bash ~/miniconda.sh -b -p /miniconda && rm -f $HOME/miniconda.sh
\ No newline at end of file
......@@ -5,7 +5,7 @@ ENV PATH $PATH:/usr/local/go/bin
# Install tooling
ENV GORELEASER_VER 0.113.0
ENV GORELEASER_SHA 2379beebb6369b75ccead7f7a43269de700b51821feae3857701d106ed72bd63
ENV GOVER 1.12.7
ENV GOVER 1.13
RUN set -ex \
&& curl -o goreleaser.tar.gz -LO https://github.com/goreleaser/goreleaser/releases/download/v${GORELEASER_VER}/goreleaser_Linux_x86_64.tar.gz \
&& echo "$GORELEASER_SHA goreleaser.tar.gz" | sha256sum -c - || exit 1 \
......
......@@ -58,7 +58,7 @@ In order to get the latest nightly build for your platform use the following lin
These links return a `302: Found` response, redirecting to latest generated builds by replacing `latest` with the latest
available build date, using the format YYYYMMDD (i.e for 2019/Aug/06 `latest` is replaced with `20190806` )
Checksums for the nightly builds are available at
Checksums for the nightly builds are available at
`https://downloads.arduino.cc/arduino-cli/nightly/nightly-<DATE>-checksums.txt`
Once downloaded, place the executable `arduino-cli` into a directory which is in your `PATH`.
......@@ -70,7 +70,7 @@ different platforms, you can use Docker to get a binary directly from sources. F
folder run:
```console
docker run -v $PWD:/arduino-cli -w /arduino-cli arduino/arduino-cli:builder-0.1 goreleaser --rm-dist --snapshot --skip-publish
docker run -v $PWD:/arduino-cli -w /arduino-cli -e PACKAGE_NAME_PREFIX='snapshot' arduino/arduino-cli:builder-1 goreleaser --rm-dist --snapshot --skip-publish
```
Once the build is over, you will find a `./dist/` folder containing the packages built out of
......
module github.com/arduino/arduino-cli
go 1.12
go 1.13
require (
bou.ke/monkey v1.0.1
......@@ -19,7 +19,6 @@ require (
github.com/fsnotify/fsnotify v1.4.7
github.com/go-errors/errors v1.0.1
github.com/golang/protobuf v1.3.2
github.com/gosuri/uitable v0.0.0-20160404203958-36ee7e946282
github.com/h2non/filetype v1.0.8 // indirect
github.com/juju/errors v0.0.0-20181118221551-089d3ea4e4d5 // indirect
github.com/juju/loggo v0.0.0-20190526231331-6e530bcce5d8 // indirect
......@@ -42,10 +41,8 @@ require (
go.bug.st/downloader v1.1.0
go.bug.st/relaxed-semver v0.0.0-20181022103824-0265409c5852
go.bug.st/serial.v1 v0.0.0-20180827123349-5f7892a7bb45
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2
golang.org/x/net v0.0.0-20190311183353-d8887717615a
golang.org/x/text v0.3.0
google.golang.org/appengine v1.4.0 // indirect
google.golang.org/genproto v0.0.0-20190327125643-d831d65fe17d // indirect
google.golang.org/grpc v1.21.1
gopkg.in/mgo.v2 v2.0.0-20180705113604-9856a29383ce // indirect
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment