From 85f94676baaf9af40ced0f20468d1adb8856ade3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=B4=9C=C9=B4=E1=B4=8B=C9=B4=E1=B4=A1=E1=B4=8F=C9=B4?= Date: Tue, 25 Feb 2020 02:12:11 +0800 Subject: [PATCH] docs: improve local development guide [CI SKIP] --- docs/local_development.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/local_development.md b/docs/local_development.md index 7d0860d8d..1cf2f85d4 100644 --- a/docs/local_development.md +++ b/docs/local_development.md @@ -23,7 +23,7 @@ Gogs is built and runs as a single binary and meant to be cross platform. Theref Gogs has the following dependencies: - [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) (v1.8.3 or higher) -- [Go](https://golang.org/doc/install) (v1.12 or higher) +- [Go](https://golang.org/doc/install) (v1.13 or higher) - [Less.js](http://lesscss.org/usage/#command-line-usage-installing) - [GNU Make](https://www.gnu.org/software/make/) - Database upon your choice (pick one, we choose PostgreSQL in this document): @@ -75,8 +75,9 @@ Gogs has the following dependencies: ```bash sudo apt install -y make git-all postgresql postgresql-contrib golang-go nodejs - go get -u github.com/kevinburke/go-bindata/... npm install -g less + # Watch out, it is not github.com/go-bindata/go-bindata! + go get -u github.com/kevinburke/go-bindata/... ``` 1. Configure startup services: @@ -121,6 +122,8 @@ Generally, you don't need a full clone, so set `--depth` to `10`: git clone --depth 10 https://github.com/gogs/gogs.git ``` +**NOTE** The repository has Go Modules enabled, please clone to somewhere outside of your `$GOPATH`. + ## Step 4: Configure database settings Create a `custom/conf/app.ini` file inside the repository and put the following configuration (everything under `custom/` directory is used to override default files and is excluded by `.gitignore`):