chore: upgrade golang to 1.18

pull/5897/head
Pavel Zavora 2022-03-23 09:49:55 +01:00
parent 3ae9a767c6
commit 62fda6ec7f
4 changed files with 5 additions and 13 deletions

View File

@ -59,15 +59,7 @@ To add a dependency via Yarn, for example, run `yarn add <dependency>` from with
## Installing Go
Chronograf requires Go 1.16 or higher.
## Installing & Using Dep
You'll need to install Dep to manage the backend (Go) dependencies.
* [Install Dep](https://github.com/golang/dep)
To add a dependency via Dep, for example, run `dep ensure -add <dependency>` from within the `/chronograf` directory. _Note that as of this writing, `dep ensure` will modify many extraneous vendor files, so you'll need to run `dep prune` to clean this up before committing your changes. Apparently, the next version of `dep` will take care of this step for you._
Chronograf requires Go 1.18 or higher.
## Revision Control Systems

View File

@ -181,11 +181,11 @@ docker pull chronograf:latest
### From Source
* Chronograf works with go 1.16+, node 12 LTS, and yarn 1.7+.
* Chronograf works with go 1.18+, 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.16](https://golang.org/doc/install)
1. [Install Go 1.18](https://golang.org/doc/install)
1. [Install Node (version 16 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)

View File

@ -33,7 +33,7 @@ RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
# Install go
ENV GOPATH /root/go
ENV GO_VERSION 1.16.4
ENV GO_VERSION 1.18
ENV GO_ARCH amd64
ENV GO111MODULES ON
RUN wget https://golang.org/dl/go${GO_VERSION}.linux-${GO_ARCH}.tar.gz; \

2
go.mod
View File

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