Skip to content
Merged

go 1.14 #10467

Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
367e043
go 1.14
techknowlogick Feb 26, 2020
4cec411
go 1.12 is now lowest we support
techknowlogick Feb 26, 2020
7f96296
Merge branch 'master' into go-1.14
sapk Feb 27, 2020
6c7d05d
update docs
techknowlogick Mar 3, 2020
0998a0d
update docs
techknowlogick Mar 3, 2020
82a4d57
make vendor
techknowlogick Mar 3, 2020
ce9b535
Merge branch 'master' into go-1.14
techknowlogick Mar 3, 2020
5bb7992
make vendor
techknowlogick Mar 3, 2020
1030613
Merge branch 'master' into go-1.14
lunny Mar 3, 2020
a95c8e5
Merge branch 'master' into go-1.14
lafriks Mar 4, 2020
53cc5b1
Merge branch 'master' of github.com:go-gitea/gitea into go-1.14
jolheiser Mar 5, 2020
e87db01
Update go versions in docs
jolheiser Mar 5, 2020
5933dc4
update golang.org/x/sys deps
techknowlogick Mar 5, 2020
ffb38a1
Merge branch 'go-1.14' of github.com:techknowlogick/gitea into go-1.14
techknowlogick Mar 5, 2020
25c109c
Merge branch 'master' into go-1.14
techknowlogick Mar 5, 2020
919173c
target specifc go version with xgo
techknowlogick Mar 5, 2020
4f7def0
Merge branch 'master' into go-1.14
lafriks Mar 5, 2020
187cf47
Merge branch 'master' into go-1.14
techknowlogick Mar 9, 2020
144d150
Merge branch 'master' into go-1.14
techknowlogick Mar 9, 2020
1e15d95
split tool versions out as variable
techknowlogick Mar 9, 2020
a4041bf
make vendor
techknowlogick Mar 9, 2020
38ae765
-u x/net
techknowlogick Mar 9, 2020
e0fa30f
Merge branch 'master' into go-1.14
techknowlogick Mar 19, 2020
594ed33
make vendor
techknowlogick Mar 19, 2020
0a38de3
Merge branch 'master' into go-1.14
techknowlogick Mar 19, 2020
8d4b98d
Merge branch 'master' into go-1.14
techknowlogick Mar 20, 2020
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
24 changes: 12 additions & 12 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ steps:

- name: build-without-gcc
pull: always
image: golang:1.11 # this step is kept as the lowest version of golang that we support
image: golang:1.12 # this step is kept as the lowest version of golang that we support
environment:
GO111MODULE: on
GOPROXY: off
Expand All @@ -28,7 +28,7 @@ steps:

- name: build-linux-386
pull: always
image: golang:1.13
image: golang:1.14
environment:
GO111MODULE: on
GOPROXY: off
Expand All @@ -39,7 +39,7 @@ steps:

- name: check
pull: always
image: golang:1.13
image: golang:1.14
commands:
- make clean golangci-lint revive swagger-check swagger-validate test-vendor
environment:
Expand Down Expand Up @@ -105,7 +105,7 @@ steps:

- name: build
pull: always
image: golang:1.13
image: golang:1.14
commands:
- curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs
- make build
Expand All @@ -122,7 +122,7 @@ steps:

- name: unit-test
pull: always
image: golang:1.13
image: golang:1.14
commands:
- make unit-test-coverage test-check
environment:
Expand All @@ -133,7 +133,7 @@ steps:

- name: test-mysql
pull: always
image: golang:1.13
image: golang:1.14
commands:
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
- apt-get install -y git-lfs
Expand All @@ -147,7 +147,7 @@ steps:

- name: test-mysql8
pull: always
image: golang:1.13
image: golang:1.14
commands:
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
- apt-get install -y git-lfs
Expand All @@ -161,7 +161,7 @@ steps:

- name: test-mssql
pull: always
image: golang:1.13
image: golang:1.14
commands:
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
- apt-get install -y git-lfs
Expand All @@ -175,7 +175,7 @@ steps:

- name: generate-coverage
pull: always
image: golang:1.13
image: golang:1.14
commands:
- make coverage
environment:
Expand Down Expand Up @@ -248,7 +248,7 @@ steps:

- name: build
pull: always
image: golang:1.13
image: golang:1.14
commands:
- curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs
- make build
Expand All @@ -259,7 +259,7 @@ steps:

- name: test-sqlite
pull: always
image: golang:1.13
image: golang:1.14
commands:
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
- apt-get install -y git-lfs
Expand All @@ -272,7 +272,7 @@ steps:

- name: test-pgsql
pull: always
image: golang:1.13
image: golang:1.14
commands:
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
- apt-get install -y git-lfs
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.13-alpine3.11 AS build-env
FROM golang:1.14-alpine3.11 AS build-env

ARG GOPROXY
ENV GOPROXY ${GOPROXY:-direct}
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ help:
.PHONY: go-check
go-check:
$(eval GO_VERSION := $(shell printf "%03d%03d%03d" $(shell go version | grep -Eo '[0-9]+\.?[0-9]+?\.?[0-9]?[[:space:]]' | tr '.' ' ');))
@if [ "$(GO_VERSION)" -lt "001011000" ]; then \
echo "Gitea requires Go 1.11.0 or greater to build. You can get it at https://golang.org/dl/"; \
@if [ "$(GO_VERSION)" -lt "001012000" ]; then \
echo "Gitea requires Go 1.12.0 or greater to build. You can get it at https://golang.org/dl/"; \
exit 1; \
fi

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ or if sqlite support is required:

The `build` target is split into two sub-targets:

- `make backend` which requires [Go 1.11](https://golang.org/dl/) or greater.
- `make backend` which requires [Go 1.12](https://golang.org/dl/) or greater.
- `make frontend` which requires [Node.js 10.0.0](https://nodejs.org/en/download/) or greater.

If pre-built frontend files are present it is possible to only build the backend:
Expand Down
2 changes: 1 addition & 1 deletion docs/content/doc/advanced/hacking-on-gitea.en-us.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ necessary. To be able to use these you must have the `"$GOPATH"/bin` directory
on the executable path. If you don't add the go bin directory to the
executable path you will have to manage this yourself.

**Note 2**: Go version 1.11 or higher is required; however, it is important
**Note 2**: Go version 1.12 or higher is required; however, it is important
to note that our continuous integration will check that the formatting of the
source code is not changed by `gofmt` using `make fmt-check`. Unfortunately,
the results of `gofmt` can differ by the version of `go`. It is therefore
Expand Down
6 changes: 3 additions & 3 deletions docs/content/doc/installation/from-source.en-us.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ necessary. To be able to use these, you must have the `"$GOPATH/bin"` directory
on the executable path. If you don't add the go bin directory to the
executable path, you will have to manage this yourself.

**Note 2**: Go version 1.11 or higher is required. However, it is recommended to
**Note 2**: Go version 1.12 or higher is required. However, it is recommended to
obtain the same version as our continuous integration, see the advice given in
<a href='{{< relref "doc/advanced/hacking-on-gitea.en-us.md" >}}'>Hacking on
Gitea</a>
Expand Down Expand Up @@ -81,7 +81,7 @@ git checkout v{{< version >}} # or git checkout pr-xyz

To build from source, the following programs must be present on the system:

- `go` 1.11.0 or higher, see [here](https://golang.org/dl/)
- `go` 1.12.0 or higher, see [here](https://golang.org/dl/)
- `node` 10.0.0 or higher with `npm`, see [here](https://nodejs.org/en/download/)
- `make`, see <a href='{{< relref "doc/advanced/make.en-us.md" >}}'>here</a>

Expand Down Expand Up @@ -116,7 +116,7 @@ TAGS="bindata sqlite sqlite_unlock_notify" make build

The `build` target is split into two sub-targets:

- `make backend` which requires [Go 1.11](https://golang.org/dl/) or greater.
- `make backend` which requires [Go 1.12](https://golang.org/dl/) or greater.
- `make frontend` which requires [Node.js 10.0.0](https://nodejs.org/en/download/) or greater.

If pre-built frontend files are present it is possible to only build the backend:
Expand Down
2 changes: 1 addition & 1 deletion docs/content/doc/installation/from-source.zh-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ git checkout v{{< version >}}

要从源代码进行编译,以下依赖程序必须事先安装好:

- `go` 1.11.0 或以上版本, 详见 [here](https://golang.org/dl/)
- `go` 1.12 或以上版本, 详见 [here](https://golang.org/dl/)
- `node` 10.0.0 或以上版本,并且安装 `npm`, 详见 [here](https://nodejs.org/en/download/)
- `make`, 详见 <a href='{{< relref "make.zh-cn.md" >}}'>这里</a>

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module code.gitea.io/gitea

go 1.13
go 1.14

require (
cloud.google.com/go v0.45.0 // indirect
Expand Down
Loading