From 98417cb13f3181a1cfd1d1b8089ab17de3423467 Mon Sep 17 00:00:00 2001 From: Scott Kay Date: Wed, 17 Jun 2020 13:33:22 -0400 Subject: [PATCH] Build With Go 1.14 (#1350) --- .travis.yml | 3 +-- Dockerfile | 4 ++-- README.md | 5 +++-- go.mod | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index ea2c46c4374..692141f716c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,8 @@ language: go go: - - '1.12' - '1.13' - - '1.14' + - '1.14.2' go_import_path: github.com/prebid/prebid-server diff --git a/Dockerfile b/Dockerfile index a8fea9c33f6..2c60b9e39b0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,8 +3,8 @@ RUN apt-get update && \ apt-get -y upgrade && \ apt-get install -y wget RUN cd /tmp && \ - wget https://dl.google.com/go/go1.12.7.linux-amd64.tar.gz && \ - tar -xf go1.12.7.linux-amd64.tar.gz && \ + wget https://dl.google.com/go/go1.14.2.linux-amd64.tar.gz && \ + tar -xf go1.14.2.linux-amd64.tar.gz && \ mv go /usr/local RUN mkdir -p /app/prebid-server/ WORKDIR /app/prebid-server/ diff --git a/README.md b/README.md index a59bf5f6aa3..b69e7e76db4 100644 --- a/README.md +++ b/README.md @@ -18,9 +18,10 @@ For more information, see: ## Installation -First install [Go 1.12](https://golang.org/doc/install) latest version. +First install [Go](https://golang.org/doc/install) version 1.13 or newer. + Note that prebid-server is using [Go modules](https://blog.golang.org/using-go-modules). -If using Go version <1.13 and are inside GOPATH `GO111MODULE` needs to be set to `GO111MODULE=on`. +We officially support the most recent two major versions of the Go runtime. However, if you'd like to use a version <1.13 and are inside GOPATH `GO111MODULE` needs to be set to `GO111MODULE=on`. Download and prepare Prebid Server: diff --git a/go.mod b/go.mod index 0224057e464..72bb9b74886 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/prebid/prebid-server -go 1.12 +go 1.13 require ( github.com/BurntSushi/toml v0.3.1 // indirect