Skip to content

Commit be544e8

Browse files
authored
Versions (#10597)
Signed-off-by: jolheiser <[email protected]>
1 parent 4e65d2b commit be544e8

File tree

6 files changed

+11
-12
lines changed

6 files changed

+11
-12
lines changed

docs/config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ params:
1919
author: The Gitea Authors
2020
website: https://docs.gitea.io
2121
version: 1.11.0
22+
minGoVersion: 1.11
23+
goVersion: 1.13
2224

2325
outputs:
2426
home:

docs/content/doc/advanced/hacking-on-gitea.en-us.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,12 @@ necessary. To be able to use these you must have the `"$GOPATH"/bin` directory
3636
on the executable path. If you don't add the go bin directory to the
3737
executable path you will have to manage this yourself.
3838

39-
**Note 2**: Go version 1.11 or higher is required; however, it is important
39+
**Note 2**: Go version {{< min-go-version >}} or higher is required; however, it is important
4040
to note that our continuous integration will check that the formatting of the
4141
source code is not changed by `gofmt` using `make fmt-check`. Unfortunately,
4242
the results of `gofmt` can differ by the version of `go`. It is therefore
43-
recommended to install the version of go that our continuous integration is
44-
running. At the time of writing this is Go version 1.12; however, this can be
45-
checked by looking at the
46-
[master `.drone.yml`](https://github.com/go-gitea/gitea/blob/master/.drone.yml)
47-
(At the time of writing
48-
[line 67](https://github.com/go-gitea/gitea/blob/8917d66571a95f3da232a0c27bc1300210d10fde/.drone.yml#L67)
49-
is the relevant line - but this may change.)
43+
recommended to install the version of Go that our continuous integration is
44+
running. As of last update, it should be Go version {{< go-version >}}.
5045

5146
## Downloading and cloning the Gitea source code
5247

docs/content/doc/installation/from-source.en-us.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ necessary. To be able to use these, you must have the `"$GOPATH/bin"` directory
3131
on the executable path. If you don't add the go bin directory to the
3232
executable path, you will have to manage this yourself.
3333

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

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

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

@@ -116,7 +116,7 @@ TAGS="bindata sqlite sqlite_unlock_notify" make build
116116

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

119-
- `make backend` which requires [Go 1.11](https://golang.org/dl/) or greater.
119+
- `make backend` which requires [Go {{< min-go-version >}}](https://golang.org/dl/) or greater.
120120
- `make frontend` which requires [Node.js 10.0.0](https://nodejs.org/en/download/) or greater.
121121

122122
If pre-built frontend files are present it is possible to only build the backend:

docs/content/doc/installation/from-source.zh-cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ git checkout v{{< version >}}
4646

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{{ .Site.Params.goVersion }}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{{ .Site.Params.minGoVersion }}

0 commit comments

Comments
 (0)