Skip to content

Commit bb3ae95

Browse files
authored
Merge pull request #1588 from o1-labs/1572-add-missing-database-setup-step-to-the-release-verification-process
Makefile improve taplo
2 parents 9d6c59b + 5bcca56 commit bb3ae95

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ NIGHTLY_RUST_VERSION = "nightly"
1111
# WebAssembly
1212
WASM_BINDGEN_CLI_VERSION = "0.2.99"
1313

14+
# TOML formatter
15+
TAPLO_CLI_VERSION = "0.9.3"
16+
1417
# Docker
1518
DOCKER_ORG ?= o1labs
1619

@@ -289,7 +292,11 @@ setup-wasm: ## Setup the WebAssembly toolchain, using nightly
289292

290293
.PHONY: setup-taplo
291294
setup-taplo: ## Install taplo TOML formatter
292-
cargo install taplo-cli
295+
@if taplo --version 2>/dev/null | grep -q ${TAPLO_CLI_VERSION}; then \
296+
echo "taplo ${TAPLO_CLI_VERSION} already installed"; \
297+
else \
298+
cargo install taplo-cli --version ${TAPLO_CLI_VERSION} --force; \
299+
fi
293300

294301
.PHONY: setup
295302
setup: setup-taplo setup-wasm ## Setup development environment

0 commit comments

Comments
 (0)