File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ def finalize_format_batch(batch):
110110 if p .returncode != 0 :
111111 print (p .stderr )
112112 print (
113- f"Failed to auto-format autogenerated code (clang-format return code { p .returncode } ). Are you running in a nix shell? See BUILDING .md."
113+ f"Failed to auto-format autogenerated code (clang-format return code { p .returncode } ). Are you running in a nix shell? See CONTRIBUTING .md."
114114 )
115115 exit (1 )
116116
@@ -291,7 +291,7 @@ def format_content(content):
291291 if p .returncode != 0 :
292292 print (p .stderr )
293293 print (
294- f"Failed to auto-format autogenerated code (clang-format return code { p .returncode } ). Are you running in a nix shell? See BUILDING .md."
294+ f"Failed to auto-format autogenerated code (clang-format return code { p .returncode } ). Are you running in a nix shell? See CONTRIBUTING .md."
295295 )
296296 exit (1 )
297297 return p .stdout
Original file line number Diff line number Diff line change @@ -30,29 +30,29 @@ error()
3030
3131info " Formatting nix files"
3232if ! command -v nixpkgs-fmt 2>&1 > /dev/null; then
33- error " nixpkgs-fmt not found. Are you running in a nix shell? See BUILDING .md."
33+ error " nixpkgs-fmt not found. Are you running in a nix shell? See CONTRIBUTING .md."
3434 exit 1
3535fi
3636
3737nixpkgs-fmt " $ROOT "
3838
3939info " Formatting shell scripts"
4040if ! command -v shfmt 2>&1 > /dev/null; then
41- error " shfmt not found. Are you running in a nix shell? See BUILDING .md."
41+ error " shfmt not found. Are you running in a nix shell? See CONTRIBUTING .md."
4242 exit 1
4343fi
4444shfmt -s -w -l -i 2 -ci -fn $( shfmt -f $( git grep -l ' ' :/) )
4545
4646info " Formatting python scripts"
4747if ! command -v black 2>&1 > /dev/null; then
48- error " black not found. Are you running in a nix shell? See BUILDING .md."
48+ error " black not found. Are you running in a nix shell? See CONTRIBUTING .md."
4949 exit 1
5050fi
5151black --include " (scripts/tests|scripts/simpasm|scripts/cfify|scripts/autogen|scripts/check-namespace|\.py$)" " $ROOT "
5252
5353info " Formatting c files"
5454if ! command -v clang-format 2>&1 > /dev/null; then
55- error " clang-format not found. Are you running in a nix shell? See BUILDING .md."
55+ error " clang-format not found. Are you running in a nix shell? See CONTRIBUTING .md."
5656 exit 1
5757fi
5858
You can’t perform that action at this time.
0 commit comments