Unione di funzione/senza-terzi in funzione/dashboard: prove senza docs/ nell'immagine
verifica / controlli (push) Canceled after 0s
verifica / prove (push) Canceled after 0s
verifica / installatore (push) Canceled after 0s
verifica / immagine (push) Canceled after 0s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-11-26 10:34:08 +01:00
commit 1553600b0d
3 files changed
+20 -2

No files matched your search

@@ -28,4 +28,22 @@ internal static class Repository
return Path.Combine([root, .. parts]);
}
/// <summary>
/// A file or folder under docs/. The build of the Docker image copies the sources without docs/ (.dockerignore) and
/// without .git: there the test is inconclusive. In a checkout docs/ is always there, so the test goes on and a
/// missing path fails it.
/// </summary>
public static string Docs(params string[] parts)
{
var path = PathOf(["docs", .. parts]);
var root = Root()!;
var isCheckout = Directory.Exists(Path.Combine(root, ".git")) || File.Exists(Path.Combine(root, ".git"));
if (!Directory.Exists(Path.Combine(root, "docs")) && !isCheckout)
{
Assert.Inconclusive("Questa copia del repository non ha docs/ (costruzione dell'immagine Docker).");
}
return path;
}
}