Skip to content

build with go1.17 #16707

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ steps:

- name: checks-backend
pull: always
image: golang:1.16
image: golang:1.17
commands:
- make checks-backend
depends_on: [lint-backend]
Expand Down Expand Up @@ -93,7 +93,7 @@ steps:
depends_on: [checks-backend]

- name: build-backend-arm64
image: golang:1.16
image: golang:1.17
environment:
GO111MODULE: on
GOPROXY: off
Expand All @@ -106,7 +106,7 @@ steps:
depends_on: [checks-backend]

- name: build-backend-windows
image: golang:1.16
image: golang:1.17
environment:
GO111MODULE: on
GOPROXY: off
Expand All @@ -118,7 +118,7 @@ steps:
depends_on: [checks-backend]

- name: build-backend-386
image: golang:1.16
image: golang:1.17
environment:
GO111MODULE: on
GOPROXY: off
Expand Down Expand Up @@ -193,7 +193,7 @@ steps:

- name: build
pull: always
image: golang:1.16
image: golang:1.17
commands:
- make backend
environment:
Expand All @@ -208,7 +208,7 @@ steps:
- git update-ref refs/heads/tag_test ${DRONE_COMMIT_SHA}

- name: unit-test
image: golang:1.16
image: golang:1.17
commands:
- make unit-test-coverage test-check
environment:
Expand All @@ -218,7 +218,7 @@ steps:
from_secret: github_read_token

- name: unit-test-race
image: golang:1.16
image: golang:1.17
commands:
- make test-backend
environment:
Expand All @@ -230,7 +230,7 @@ steps:

- name: unit-test-gogit
pull: always
image: golang:1.16
image: golang:1.17
commands:
- make unit-test-coverage test-check
environment:
Expand Down Expand Up @@ -277,7 +277,7 @@ steps:
- build

- name: generate-coverage
image: golang:1.16
image: golang:1.17
commands:
- make coverage
environment:
Expand Down Expand Up @@ -351,7 +351,7 @@ steps:

- name: build
pull: always
image: golang:1.16
image: golang:1.17
commands:
- make backend
environment:
Expand Down Expand Up @@ -463,7 +463,7 @@ trigger:

steps:
- name: download
image: golang:1.16
image: golang:1.17
commands:
- timeout -s ABRT 40m make generate-license generate-gitignore

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

###################################
#Build stage
FROM golang:1.16-alpine3.13 AS build-env
FROM golang:1.17-alpine3.13 AS build-env

ARG GOPROXY
ENV GOPROXY ${GOPROXY:-direct}
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.rootless
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

###################################
#Build stage
FROM golang:1.16-alpine3.13 AS build-env
FROM golang:1.17-alpine3.13 AS build-env

ARG GOPROXY
ENV GOPROXY ${GOPROXY:-direct}
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ SHASUM ?= shasum -a 256
HAS_GO = $(shell hash $(GO) > /dev/null 2>&1 && echo "GO" || echo "NOGO" )
COMMA := ,

XGO_VERSION := go-1.16.x
XGO_VERSION := go-1.17.x
MIN_GO_VERSION := 001016000
MIN_NODE_VERSION := 012017000

Expand Down
2 changes: 1 addition & 1 deletion docs/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ params:
website: https://docs.gitea.io
version: 1.14.6
minGoVersion: 1.16
goVersion: 1.16
goVersion: 1.17
minNodeVersion: 12.17

outputs:
Expand Down