From f127afac6e444f59e7b9f715be712d4d6db87ea8 Mon Sep 17 00:00:00 2001 From: Quanyi Ma Date: Wed, 10 Jul 2024 09:40:42 +0800 Subject: [PATCH] Add git submodule init command in development.md and add buck config files Signed-off-by: Quanyi Ma --- .buckconfig | 16 ++++++++++++++++ .buckroot | 0 .gitignore | 9 +++++++-- docs/development.md | 10 ++++++---- mega/BUCK | 5 +++++ 5 files changed, 34 insertions(+), 6 deletions(-) create mode 100644 .buckconfig create mode 100644 .buckroot create mode 100644 mega/BUCK diff --git a/.buckconfig b/.buckconfig new file mode 100644 index 000000000..027fddaa2 --- /dev/null +++ b/.buckconfig @@ -0,0 +1,16 @@ +[cells] +root = . +prelude = prelude +toolchains = toolchains +none = none + +[cell_aliases] +config = prelude +ovr_config = prelude +fbcode = none +fbsource = none +fbcode_macros = none +buck = none + +[parser] +target_platform_detector_spec = target:root//...->prelude//platforms:default diff --git a/.buckroot b/.buckroot new file mode 100644 index 000000000..e69de29bb diff --git a/.gitignore b/.gitignore index 05714bd77..219301b08 100644 --- a/.gitignore +++ b/.gitignore @@ -15,7 +15,12 @@ Cargo.lock # Mac .DS_Store -.VSCodeCounter# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. +.VSCodeCounter # zmt agent data file -ztm_agent.db \ No newline at end of file +ztm_agent.db + +# buck2 out +buck-out \ No newline at end of file diff --git a/docs/development.md b/docs/development.md index 8438de189..6f7e6c837 100644 --- a/docs/development.md +++ b/docs/development.md @@ -19,6 +19,7 @@ ```bash $ git clone https://github.com/web3infra-foundation/mega.git $ cd mega + $ git submodule update --init --recursive $ cargo build ``` @@ -183,12 +184,13 @@ ```bash $ git clone https://github.com/web3infra-foundation/mega.git $ cd mega + $ git submodule update --init --recursive $ cargo build ``` 3. Install PostgreSQL and initialize database. - 1. Install PostgreSQL. + 1.Install PostgreSQL. ```bash $ pacman -S postgresql @@ -199,7 +201,7 @@ $ systemctl enable --now postgresql ``` - 2. Create database. + 2.Create database. ```bash $ sudo -u postgres psql postgres @@ -212,14 +214,14 @@ postgres=# \q ``` - 3. Import `mega/sql/postgres/pg_