diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..faecebbf --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "prelude"] + path = prelude + url = https://github.com/facebook/buck2-prelude.git diff --git a/README-BUCK.md b/README-BUCK.md index 7159e552..5c09e3c5 100644 --- a/README-BUCK.md +++ b/README-BUCK.md @@ -21,15 +21,8 @@ Instructions on how to setup a Buck2 build of ocamlrep. More Buck2 information & - Initialize a Buck2 prelude Git submodule. ```bash - git submodule add https://github.com/facebook/buck2-prelude.git prelude git submodule update --init ``` -- Checkout the prelude at the right commit. - - ```bash - prelude_hash=$(curl https://github.com/facebook/buck2/releases/download/latest/prelude_hash) - (cd prelude && git checkout $prelude_hash) - ``` ### Reindeer [Reindeer](https://github.com/facebookincubator/reindeer) is a tool to generate Buck2 rules for Rust crates. diff --git a/prelude b/prelude new file mode 160000 index 00000000..b8851f1b --- /dev/null +++ b/prelude @@ -0,0 +1 @@ +Subproject commit b8851f1bf8f877b43cae97213f048d6e63394eef