Merge pull request #5754 from influxdata/chore/upgrade_go_1.16

chore: upgrade golang to 1.16, add macOS arm64 build
pull/5759/head
Pavel Závora 2021-05-25 14:18:43 +02:00 committed by GitHub
commit d86ae4d482
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 16 additions and 13 deletions

View File

@ -33,7 +33,7 @@ version: 2
jobs:
build:
environment:
DOCKER_TAG: chronograf-20201214
DOCKER_TAG: chronograf-20210521
GO111MODULE: "ON"
machine: true
steps:
@ -56,7 +56,7 @@ jobs:
deploy-nightly:
environment:
DOCKER_TAG: chronograf-20201214
DOCKER_TAG: chronograf-20210521
GO111MODULE: "ON"
machine: true
steps:
@ -84,7 +84,7 @@ jobs:
deploy-pre-release:
environment:
DOCKER_TAG: chronograf-20201214
DOCKER_TAG: chronograf-20210521
GO111MODULE: "ON"
machine: true
steps:
@ -114,7 +114,7 @@ jobs:
deploy-release:
environment:
DOCKER_TAG: chronograf-20201214
DOCKER_TAG: chronograf-20210521
GO111MODULE: "ON"
machine: true
steps:

View File

@ -38,6 +38,7 @@
1. [#5722](https://github.com/influxdata/chronograf/pull/5722): Filter out roles with unknown organization reference.
1. [#5724](https://github.com/influxdata/chronograf/pull/5724): Detect actual flux support in flux proxy.
1. [#5747](https://github.com/influxdata/chronograf/pull/5747): Manage individual execution status per query.
1. [#5754](https://github.com/influxdata/chronograf/pull/5754): Add macOS arm64 builds.
### Other
@ -47,6 +48,7 @@
1. [#5706](https://github.com/influxdata/chronograf/pull/5706): Improve communication with InfluxDB Enterprise.
1. [#5730](https://github.com/influxdata/chronograf/pull/5730): Update license of dependencies.
1. [#5750](https://github.com/influxdata/chronograf/pull/5750): Upgrade markdown renderer.
1. [#5754](https://github.com/influxdata/chronograf/pull/5754): Upgrade golang to 1.16.
### Breaking Changes

View File

@ -59,7 +59,7 @@ To add a dependency via Yarn, for example, run `yarn add <dependency>` from with
## Installing Go
Chronograf requires Go 1.15 or higher.
Chronograf requires Go 1.16 or higher.
## Installing & Using Dep

View File

@ -181,12 +181,12 @@ docker pull chronograf:latest
### From Source
* Chronograf works with go 1.15+, node 12 LTS, and yarn 1.7+.
* Chronograf works with go 1.16+, node 12 LTS, and yarn 1.7+.
* Chronograf requires [Kapacitor](https://github.com/influxdata/kapacitor)
1.5.x+ to create and store alerts.
1. [Install Go 1.15](https://golang.org/doc/install)
1. [Install Node (version 12 LTS)](https://nodejs.org/en/about/releases/)
1. [Install Go 1.16](https://golang.org/doc/install)
1. [Install Node (version 14 LTS)](https://nodejs.org/en/about/releases/)
1. [Install yarn](https://yarnpkg.com/docs/install)
1. [Setup your GOPATH](https://golang.org/doc/code.html#GOPATH)
1. Build the Chronograf package:

View File

@ -12,11 +12,12 @@ RUN apt update && DEBIAN_FRONTEND=noninteractive apt install -y \
ruby-dev \
rpm \
zip \
python-pip \
python3-pip \
autoconf \
libtool
RUN pip install boto requests python-jose --upgrade
#RUN pip install pyrsistent==0.16.1
RUN pip3 install boto requests python-jose --upgrade
RUN gem install fpm
# Install node
@ -33,7 +34,7 @@ RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
# Install go
ENV GOPATH /root/go
ENV GO_VERSION 1.15.5
ENV GO_VERSION 1.16.4
ENV GO_ARCH amd64
ENV GO111MODULES ON
RUN wget https://storage.googleapis.com/golang/go${GO_VERSION}.linux-${GO_ARCH}.tar.gz; \

View File

@ -90,7 +90,7 @@ targets = {
}
supported_builds = {
'darwin': [ "amd64" ],
'darwin': [ "amd64" , "arm64" ],
'windows': [ "amd64" ],
'linux': [ "amd64", "i386", "armhf", "arm64", "armel", "static_i386", "static_amd64" ]
}

2
go.mod
View File

@ -1,6 +1,6 @@
module github.com/influxdata/chronograf
go 1.15
go 1.16
require (
cloud.google.com/go/bigtable v1.10.0 // indirect