소스 검색

chore: fix precommit scrips check

This removes rustup from the scripts. As rust versions should be managed
through the nix shell and not rust up.
thesimplekid 1 년 전
부모
커밋
c77feec5e5
5개의 변경된 파일6개의 추가작업 그리고 9개의 파일을 삭제
  1. 1 1
      misc/scripts/check-crates.sh
  2. 1 1
      misc/scripts/check-docs.sh
  3. 2 5
      misc/scripts/check-fmt.sh
  4. 1 1
      misc/scripts/check.sh
  5. 1 1
      misc/scripts/precommit.sh

+ 1 - 1
misc/scripts/check-crates.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -euo pipefail
 

+ 1 - 1
misc/scripts/check-docs.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -euo pipefail
 

+ 2 - 5
misc/scripts/check-fmt.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -euo pipefail
 
@@ -9,9 +9,6 @@ if [[ "$#" -gt 0 && "$1" == "check" ]]; then
     flags="--check"
 fi
 
-# Install toolchain
-rustup install nightly-2024-01-11
-rustup component add rustfmt --toolchain nightly-2024-01-11
 
 # Check workspace crates
-cargo +nightly-2024-01-11 fmt --all -- --config format_code_in_doc_comments=true $flags
+cargo fmt --all -- --config format_code_in_doc_comments=true $flags

+ 1 - 1
misc/scripts/check.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -exuo pipefail
 

+ 1 - 1
misc/scripts/precommit.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -exuo pipefail