From e1630c7fe4ee768fd576a663aafe102355f0156f Mon Sep 17 00:00:00 2001 From: Lohachov Mykhailo Date: Fri, 17 Jan 2025 20:47:06 +0900 Subject: [PATCH] fix: update pre-commit scripts Signed-off-by: Lohachov Mykhailo --- defaults/docker-compose.local.yml | 2 +- defaults/docker-compose.single.yml | 2 +- defaults/docker-compose.yml | 2 +- hooks/pre-commit.sample | 6 +++--- scripts/tests/consistency.sh | 6 +++--- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/defaults/docker-compose.local.yml b/defaults/docker-compose.local.yml index 0fe84117f91..66a4cc4e537 100644 --- a/defaults/docker-compose.local.yml +++ b/defaults/docker-compose.local.yml @@ -1,4 +1,4 @@ -# Generated by `iroha_swarm`. +# Generated by `kagami swarm`. # You should not edit this manually. # Seed: Iroha diff --git a/defaults/docker-compose.single.yml b/defaults/docker-compose.single.yml index b654bfb7668..bfcb31295c1 100644 --- a/defaults/docker-compose.single.yml +++ b/defaults/docker-compose.single.yml @@ -1,4 +1,4 @@ -# Generated by `iroha_swarm`. +# Generated by `kagami swarm`. # You should not edit this manually. # Seed: Iroha diff --git a/defaults/docker-compose.yml b/defaults/docker-compose.yml index cc94927f745..20d683f5dae 100644 --- a/defaults/docker-compose.yml +++ b/defaults/docker-compose.yml @@ -1,4 +1,4 @@ -# Generated by `iroha_swarm`. +# Generated by `kagami swarm`. # You should not edit this manually. # Seed: Iroha diff --git a/hooks/pre-commit.sample b/hooks/pre-commit.sample index b9df7043e1d..f20c1999301 100755 --- a/hooks/pre-commit.sample +++ b/hooks/pre-commit.sample @@ -13,8 +13,8 @@ cargo run --bin kagami -- genesis generate --executor executor.wasm --wasm-dir l # update schema cargo run --bin kagami -- schema > ./docs/source/references/schema.json # update docker compose files -cargo run --bin kagami swarm -- -p 1 -s Iroha -H -c ./defaults -i hyperledger/iroha:local -b . -o ./defaults/docker-compose.single.yml -F -cargo run --bin kagami swarm -- -p 4 -s Iroha -H -c ./defaults -i hyperledger/iroha:local -b . -o ./defaults/docker-compose.local.yml -F -cargo run --bin kagami swarm -- -p 4 -s Iroha -H -c ./defaults -i hyperledger/iroha:dev -o ./defaults/docker-compose.yml -F +cargo run --bin kagami -- swarm -p 1 -s Iroha -H -c ./defaults -i hyperledger/iroha:local -b . -o ./defaults/docker-compose.single.yml -F +cargo run --bin kagami -- swarm -p 4 -s Iroha -H -c ./defaults -i hyperledger/iroha:local -b . -o ./defaults/docker-compose.local.yml -F +cargo run --bin kagami -- swarm -p 4 -s Iroha -H -c ./defaults -i hyperledger/iroha:dev -o ./defaults/docker-compose.yml -F # stage updates git add ./defaults/genesis.json ./docs/source/references/schema.json ./defaults/docker-compose.single.yml ./defaults/docker-compose.local.yml ./defaults/docker-compose.yml diff --git a/scripts/tests/consistency.sh b/scripts/tests/consistency.sh index 7ffb66d2913..e09360e6e5e 100755 --- a/scripts/tests/consistency.sh +++ b/scripts/tests/consistency.sh @@ -25,15 +25,15 @@ case $1 in } command_base_for_single() { - echo "cargo run --release --bin kagami swarm -- -p 1 -s Iroha -H -c ./defaults -i hyperledger/iroha:local -b ." + echo "cargo run --release --bin kagami -- swarm -p 1 -s Iroha -H -c ./defaults -i hyperledger/iroha:local -b ." } command_base_for_multiple_local() { - echo "cargo run --release --bin kagami swarm -- -p 4 -s Iroha -H -c ./defaults -i hyperledger/iroha:local -b ." + echo "cargo run --release --bin kagami -- swarm -p 4 -s Iroha -H -c ./defaults -i hyperledger/iroha:local -b ." } command_base_for_default() { - echo "cargo run --release --bin kagami swarm -- -p 4 -s Iroha -H -c ./defaults -i hyperledger/iroha:dev" + echo "cargo run --release --bin kagami -- swarm -p 4 -s Iroha -H -c ./defaults -i hyperledger/iroha:dev" }