Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
Add dev/bootstrap.sh, for developer bootstrapping
✗ CI failure Richard Levitte committed 16 days ago
commit e2b9dabe49bd487c5438a7814d8085fd51ff8072
parent 4e480e603fe8f0da32fa00dd1a579e01f8e835a0
1 failed (1 total) View logs
2 files changed +23 -5
modified CONTRIBUTING.md
@@ -35,15 +35,20 @@ simple guidelines.

Patch formatting follows the same rules as commit formatting. See below.

-
### Git hooks & Task runner
+
### Developer boostrap

-
We use [`just >= v1.49.0`](https://just.systems/) as our task runner. You can see all available commands by running `just` or `just --list` in the repository root.
+
To bootstrap our development environment for this repository, please
+
run the following command:
+

+
    $ dev/bootstrap.sh

-
If you are not using Nix (which sets up hooks automatically), you should install the local git hooks:
+
It will set up (or append to, if it already exists) `.envrc`, as well
+
as install git hooks if you have `just` installed (if not, you will be
+
asked to install it and re-run this script).

-
    $ just install-hooks
+
### Task runner

-
These hooks will run formatting, linting, and spelling checks on `pre-commit` and `pre-push`. For security, our hooks are copied rather than symlinked. If you check out a branch that modifies sensitive files (like `build.rs` or `justfile`), the hook will pause and ask for your confirmation before executing any code.
+
We use [`just >= v1.49.0`](https://just.systems/) as our task runner. You can see all available commands by running `just` or `just --list` in the repository root.

### Linting & formatting

added dev/bootstrap.sh
@@ -0,0 +1,13 @@
+
#! /usr/bin/env sh
+
set -e
+

+
HERE=$(dirname $0)
+
cd $HERE/..
+

+
./scripts/install-default.envrc.sh
+
if command -v just > /dev/null; then
+
    just install-hooks
+
else
+
    echo >&2 "Recommendation: please install 'just' to benefit from git hooks"
+
    echo >&2 "Then re-run this script"
+
fi