title | draft |
---|---|
Build for Development |
true |
If you want to develop the TiDB project, you can follow this guide.
You need to check the supported platforms and prerequisites first.
-
Get TiKV source code from GitHub
git clone https://github.com/tikv/tikv.git cd tikv
-
Run all unit tests:
make dev
-
Build in release mode:
make release
-
Make sure the
GOPATH
environment is set correctly. -
Get the TiDB source code.
git clone https://github.com/pingcap/tidb.git $GOPATH/src/github.com/pingcap/tidb
-
Enter
$GOPATH/src/github.com/pingcap/tidb
to build and install the binary in thebin
directory.make
-
Run the unit test.
make dev
-
Get the PD source code.
git clone https://github.com/pingcap/pd.git $GOPATH/src/github.com/pingcap/pd
-
Enter
$GOPATH/src/github.com/pingcap/pd
to build and install the binary in thebin
directory.make
-
Run the unit test.
make dev