Some changes

- Changed ModuleInfo to class, save Length for Timestamp-Hashes
- Obey recursive-flag for WatchedSources
- Verbosely skip up-to-date modules
This commit is contained in:
Simon Lübeß
2026-04-13 20:48:21 +02:00
parent 6bec99ab06
commit 1e1ec7aaa9
3 changed files with 27 additions and 28 deletions
+6 -1
View File
@@ -1,6 +1,5 @@
using System.CommandLine;
using System.Diagnostics;
using System.Net;
using SimpleExec;
using Spectre.Console;
using BuildTool.Modules;
@@ -273,6 +272,12 @@ class Program
// create a copy of the build info updated with the module's watched sources and cache info (last build time etc.)
BuildInfo moduleBuildInfo = module.GetBuildInfo(buildInfo, moduleCache);
if (!moduleBuildInfo.BuildDebug && !moduleBuildInfo.BuildRelease)
{
AnsiConsole.MarkupLine($"\n[green]Module [bold italic]{module.Name}[/] is up to date, skipping.[/]\n");
continue;
}
try
{