From f74a114f93439591582ad92a6b80201fb026aacd Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 25 Apr 2026 03:52:53 +0000 Subject: [PATCH] chore(build): fix clean/clean-all inconsistency and redundant build step - clean no longer removes src/test obj/bin directories; the comment already said it should preserve these (for faster incremental builds) - clean-all now correctly adds the obj/bin removal on top of clean, making it non-redundant (previously clean and clean-all did the same thing) - remove redundant `dotnet build test` in test recipe; dotnet run already performs an implicit build before executing Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- justfile | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/justfile b/justfile index 7fd2b3f..53aea05 100644 --- a/justfile +++ b/justfile @@ -17,20 +17,18 @@ fable := if dev == "true" { "dotnet run --project " + fable_repo / "src/Fable.Cl default: @just --list -# Clean Fable build output (preserves dotnet obj/bin directories) +# Clean Fable build output (preserves dotnet obj/bin restore cache for faster incremental builds) clean: rm -rf {{build_path}} - rm -rf {{src_path}}/obj {{src_path}}/bin - rm -rf {{test_path}}/obj {{test_path}}/bin rm -rf examples/*/build examples/*/obj examples/*/bin rm -rf examples/*/src/obj examples/*/src/bin rm -rf examples/*/.fable examples/*/src/.fable rm -rf .fable -# Deep clean - removes everything including dotnet obj/bin directories +# Deep clean - removes everything including dotnet obj/bin directories (forces full NuGet restore) clean-all: clean - rm -rf {{src_path}}/obj {{test_path}}/obj - rm -rf {{src_path}}/bin {{test_path}}/bin + rm -rf {{src_path}}/obj {{src_path}}/bin + rm -rf {{test_path}}/obj {{test_path}}/bin # Build F# source to Python using Fable build: clean @@ -44,7 +42,6 @@ run: clean # Run all tests (native .NET and Python) test: build - dotnet build {{test_path}} @echo "Running native .NET tests..." dotnet run --project {{test_path}} @echo "Compiling and running Python tests..."