aboutsummaryrefslogtreecommitdiff
path: root/docs/dev/local_development.md
diff options
context:
space:
mode:
authorJoe Chen <jc@unknwon.io>2022-06-06 12:10:36 +0800
committerGitHub <noreply@github.com>2022-06-06 12:10:36 +0800
commit0a92ad27efa972d6e960665fd274eb765fbabcec (patch)
tree4f534cd14034917896399f1c8038aac07d910b84 /docs/dev/local_development.md
parent4cc3000b07edf80939cde550c6b259ecd980eadb (diff)
db: use `context` and go-mockgen for `AccessTokensStore` (#7013)
Diffstat (limited to 'docs/dev/local_development.md')
-rw-r--r--docs/dev/local_development.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/dev/local_development.md b/docs/dev/local_development.md
index 9458de85..7d822ae8 100644
--- a/docs/dev/local_development.md
+++ b/docs/dev/local_development.md
@@ -24,6 +24,8 @@ Gogs has the following dependencies:
- [Go](https://golang.org/doc/install) (v1.16 or higher)
- [Less.js](http://lesscss.org/usage/#command-line-usage-installing)
- [Task](https://github.com/go-task/task) (v3)
+- [goimports](https://pkg.go.dev/golang.org/x/tools/cmd/goimports)
+- [go-mockgen](https://github.com/derision-test/go-mockgen)
- Database upon your choice (pick one, we choose PostgreSQL in this document):
- [PostgreSQL](https://wiki.postgresql.org/wiki/Detailed_installation_guides) (v9.6 or higher)
- [MySQL](https://dev.mysql.com/downloads/mysql/) with `ENGINE=InnoDB` (v5.7 or higher)
@@ -39,6 +41,8 @@ Gogs has the following dependencies:
brew install go postgresql git npm go-task/tap/go-task
npm install -g less
npm install -g less-plugin-clean-css
+ go install github.com/derision-test/go-mockgen/cmd/go-mockgen@latest
+ go install golang.org/x/tools/cmd/goimports@latest
```
1. Configure PostgreSQL to start automatically:
@@ -75,6 +79,8 @@ Gogs has the following dependencies:
sudo apt install -y make git-all postgresql postgresql-contrib golang-go nodejs
npm install -g less
go install github.com/go-task/task/v3/cmd/task@latest
+ go install github.com/derision-test/go-mockgen/cmd/go-mockgen@latest
+ go install golang.org/x/tools/cmd/goimports@latest
```
1. Configure startup services: