From fed0e61d11ec169a449fb8a576b83671a96ef052 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 11 Oct 2026 21:11:26 +0200 Subject: [PATCH] smoke-hull: fix the dry-run and apply message literals and the lambda names that shadowed the hull e8442328 does not build (newline inside two string literals); this one does. Co-Authored-By: Claude Opus 5.5 --- tools/AetherDb/Program.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tools/AetherDb/Program.cs b/tools/AetherDb/Program.cs index 9791f1d23..38d0fa039 100644 --- a/tools/AetherDb/Program.cs +++ b/tools/AetherDb/Program.cs @@ -1614,13 +1614,13 @@ public static class Program { const string name = "Smoke Test Hull"; var db = AetherDb.Open(catalogWritable: apply, root: root); - if (db.Cache.GetAll().Any(hull => hull.Name == name)) + if (db.Cache.GetAll().Any(h => h.Name == name)) { Console.WriteLine($"\"{name}\" is already authored; nothing to do."); return 0; } - var longinus = db.Cache.GetAll().Single(hull => hull.Name == "Longinus"); + var longinus = db.Cache.GetAll().Single(h => h.Name == "Longinus"); var options = CultDocumentMessagePackSerialization.OptionsFor(typeof(HullData).Assembly); var hull = MessagePackSerializer.Deserialize(MessagePackSerializer.Serialize(longinus, options), options); hull.Name = name; @@ -1652,15 +1652,13 @@ public static class Program Console.WriteLine($" {hardpoint.Type,-9} {hardpoint.Shape.Width}x{hardpoint.Shape.Height} at {hardpoint.Position.x},{hardpoint.Position.y} rotation {hardpoint.Rotation}"); if (!apply) { - Console.WriteLine(" -Dry run. Pass \"apply\" to author it."); + Console.WriteLine("\nDry run. Pass \"apply\" to author it."); return 0; } CultRecordRefs.Validate(hull); db.Cache.Commit(batch => batch.Upsert(typeof(HullData), hull)); - Console.WriteLine($" -Authored \"{name}\" in Aetheria.cc"); + Console.WriteLine($"\nAuthored \"{name}\" in Aetheria.cc"); return 0; }