mirror of
https://github.com/aljazceru/cdk.git
synced 2025-12-22 23:25:22 +01:00
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.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
|
||||
@@ -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,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -exuo pipefail
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -exuo pipefail
|
||||
|
||||
|
||||
Reference in New Issue
Block a user