Switch to building with go1.19 (#20695)

tokarchuk/v1.18
techknowlogick 2 years ago committed by GitHub
parent 64c371a167
commit be824890e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 26
      .drone.yml
  2. 4
      .golangci.yml
  3. 2
      Dockerfile
  4. 2
      Dockerfile.rootless
  5. 2
      Makefile
  6. 2
      docs/config.yaml

@ -25,7 +25,7 @@ steps:
- make deps-frontend
- name: deps-backend
image: golang:1.18
image: golang:1.19
pull: always
commands:
- make deps-backend
@ -88,7 +88,7 @@ steps:
depends_on: [deps-frontend]
- name: checks-backend
image: golang:1.18
image: golang:1.19
commands:
- make checks-backend
depends_on: [deps-backend]
@ -122,7 +122,7 @@ steps:
path: /go
- name: build-backend-arm64
image: golang:1.18
image: golang:1.19
environment:
GO111MODULE: on
GOPROXY: https://goproxy.io
@ -138,7 +138,7 @@ steps:
path: /go
- name: build-backend-windows
image: golang:1.18
image: golang:1.19
environment:
GO111MODULE: on
GOPROXY: https://goproxy.io
@ -153,7 +153,7 @@ steps:
path: /go
- name: build-backend-386
image: golang:1.18
image: golang:1.19
environment:
GO111MODULE: on
GOPROXY: https://goproxy.io
@ -243,7 +243,7 @@ steps:
- pull_request
- name: deps-backend
image: golang:1.18
image: golang:1.19
pull: always
commands:
- make deps-backend
@ -360,7 +360,7 @@ steps:
path: /go
- name: generate-coverage
image: golang:1.18
image: golang:1.19
commands:
- make coverage
environment:
@ -436,7 +436,7 @@ steps:
- pull_request
- name: deps-backend
image: golang:1.18
image: golang:1.19
pull: always
commands:
- make deps-backend
@ -578,7 +578,7 @@ trigger:
steps:
- name: download
image: golang:1.18
image: golang:1.19
pull: always
commands:
- timeout -s ABRT 40m make generate-license generate-gitignore
@ -640,7 +640,7 @@ steps:
- make deps-frontend
- name: deps-backend
image: golang:1.18
image: golang:1.19
pull: always
commands:
- make deps-backend
@ -649,7 +649,7 @@ steps:
path: /go
- name: static
image: techknowlogick/xgo:go-1.18.x
image: techknowlogick/xgo:go-1.19.x
pull: always
commands:
# Upgrade to node 18 once https://github.com/techknowlogick/xgo/issues/163 is resolved
@ -760,7 +760,7 @@ steps:
- make deps-frontend
- name: deps-backend
image: golang:1.18
image: golang:1.19
pull: always
commands:
- make deps-backend
@ -769,7 +769,7 @@ steps:
path: /go
- name: static
image: techknowlogick/xgo:go-1.18.x
image: techknowlogick/xgo:go-1.19.x
pull: always
commands:
# Upgrade to node 18 once https://github.com/techknowlogick/xgo/issues/163 is resolved

@ -29,7 +29,7 @@ linters:
fast: false
run:
go: 1.18
go: 1.19
timeout: 10m
skip-dirs:
- node_modules
@ -75,7 +75,7 @@ linters-settings:
- name: modifies-value-receiver
gofumpt:
extra-rules: true
lang-version: "1.18"
lang-version: "1.19"
depguard:
# TODO: use depguard to replace import checks in gitea-vet
list-type: denylist

@ -1,5 +1,5 @@
#Build stage
FROM golang:1.18-alpine3.16 AS build-env
FROM golang:1.19-alpine3.16 AS build-env
ARG GOPROXY
ENV GOPROXY ${GOPROXY:-direct}

@ -1,5 +1,5 @@
#Build stage
FROM golang:1.18-alpine3.16 AS build-env
FROM golang:1.19-alpine3.16 AS build-env
ARG GOPROXY
ENV GOPROXY ${GOPROXY:-direct}

@ -23,7 +23,7 @@ SHASUM ?= shasum -a 256
HAS_GO = $(shell hash $(GO) > /dev/null 2>&1 && echo "GO" || echo "NOGO" )
COMMA := ,
XGO_VERSION := go-1.18.x
XGO_VERSION := go-1.19.x
AIR_PACKAGE ?= github.com/cosmtrek/air@v1.40.4
EDITORCONFIG_CHECKER_PACKAGE ?= github.com/editorconfig-checker/editorconfig-checker/cmd/editorconfig-checker@2.5.0

@ -20,7 +20,7 @@ params:
website: https://docs.gitea.io
version: 1.16.9
minGoVersion: 1.18
goVersion: 1.18
goVersion: 1.19
minNodeVersion: 14
outputs:

Loading…
Cancel
Save