Update to Go 1.19 in CI, set min version to 1.17

This commit is contained in:
Brendan C. Ward 2022-10-19 20:01:02 -07:00
parent 3a710c6396
commit f11693bc82
No known key found for this signature in database
GPG Key ID: BA077BE8F8B9CE08
8 changed files with 58 additions and 38 deletions

View File

@ -1,4 +1,4 @@
FROM golang:1.17-bullseye
FROM golang:1.19-bullseye
RUN \
dpkg --add-architecture arm64 && \

View File

@ -1,4 +1,4 @@
FROM golang:1.17-bullseye
FROM golang:1.19-bullseye
RUN \
apt-get update && \

View File

@ -2,11 +2,11 @@ name: "CodeQL"
on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]
schedule:
- cron: '43 1 * * 6'
- cron: "43 1 * * 6"
jobs:
analyze:
@ -20,30 +20,30 @@ jobs:
strategy:
fail-fast: false
matrix:
go: [1.17.x]
go: [1.19.x]
steps:
- name: Install GCC (Ubuntu)
run: |
sudo apt update
sudo apt install -y gcc-multilib g++-multilib
shell: bash
- name: Install GCC (Ubuntu)
run: |
sudo apt update
sudo apt install -y gcc-multilib g++-multilib
shell: bash
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Checkout repository
uses: actions/checkout@v2
- name: Checkout repository
uses: actions/checkout@v2
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: go
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: go
- name: Build
run: go build .
- name: Build
run: go build .
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1

View File

@ -9,8 +9,9 @@ on:
jobs:
test:
strategy:
fail-fast: false
matrix:
go: [1.16.x, 1.17.x, 1.18.x]
go: [1.17.x, 1.18.x, 1.19.x]
os: [ubuntu-20.04, macos-latest]
runs-on: ${{ matrix.os }}
env:
@ -39,7 +40,7 @@ jobs:
test-arm64:
strategy:
matrix:
go: [1.16.x, 1.17.x, 1.18.x]
go: [1.17.x, 1.18.x, 1.19.x]
runs-on: ubuntu-20.04
env:

View File

@ -1,6 +1,15 @@
# Changelog
## 0.9.0 (in progress)
## 0.9.0
### Breaking changes
- now requires Go 1.17+.
### General changes
- upgraded Docker containers to Go 1.19
- upgraded Go version used for release to Go 1.19
### Command-line interface

View File

@ -1,5 +1,5 @@
# Stage 1: compile mbtileserver
FROM golang:1.17-alpine3.15
FROM golang:1.19-alpine3.16
WORKDIR /
RUN apk add git build-base
@ -9,7 +9,7 @@ RUN GOOS=linux go build -o /mbtileserver
# Stage 2: start from a smaller image
FROM alpine:3.15
FROM alpine:3.16
WORKDIR /

View File

@ -33,9 +33,9 @@ virtual machine without any issues.
## Supported Go versions
_Requires Go 1.16+._
_Requires Go 1.17+._
`mbtileserver` uses go modules and follows standard practices as of Go 1.16.
`mbtileserver` uses go modules and follows standard practices as of Go 1.17.
## Installation

22
go.mod
View File

@ -2,21 +2,31 @@ module github.com/consbio/mbtileserver
require (
github.com/brendan-ward/mbtiles-go v0.1.1-0.20220830154734-a6cb9b848bab
github.com/certifi/gocertifi v0.0.0-20210507211836-431795d63e8d // indirect
github.com/evalphobia/logrus_sentry v0.8.2
github.com/fsnotify/fsnotify v1.6.0
github.com/getsentry/raven-go v0.2.0 // indirect
github.com/labstack/echo/v4 v4.9.1
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/sirupsen/logrus v1.9.0
github.com/spf13/cobra v1.6.0
github.com/valyala/fasttemplate v1.2.2 // indirect
golang.org/x/crypto v0.0.0-20221012134737-56aed061732a
)
require (
crawshaw.io/sqlite v0.3.3-0.20211227050848-2cdb5c1a86a1 // indirect
github.com/certifi/gocertifi v0.0.0-20210507211836-431795d63e8d // indirect
github.com/getsentry/raven-go v0.2.0 // indirect
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect
github.com/inconshreveable/mousetrap v1.0.1 // indirect
github.com/labstack/gommon v0.4.0 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.16 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasttemplate v1.2.2 // indirect
golang.org/x/net v0.0.0-20221017152216-f25eb7ecb193 // indirect
golang.org/x/sys v0.1.0 // indirect
golang.org/x/text v0.4.0 // indirect
golang.org/x/time v0.1.0 // indirect
)
go 1.16
go 1.17