fix: harden Landwelle cron jobs, job snapshots and build guard v1.5.74
* fix(ai): atomically claim cron tasks and isolate job status snapshots * test(ai): verify independent job snapshots, retention and atomic cron claim * fix(build): detect obsolete untracked Go files before compilation * chore(release): mark Landwelle v1.5.74 * chore(release): mark Landwelle v1.5.74 * docs: document v1.5.74 fixes and deferred architecture * docs: add operational release notes for v1.5.74 * ci: prove stale local Go files are rejected before ARM build * fix(build): restore script and correct untracked-source guard * fix(build): use correctly escaped Go-source pattern
This commit is contained in:
1 parent
1831e499c8
commit
a6eb693c32
8 files changed
+171
-5
No files matched your search
@@ -4,6 +4,18 @@ ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
mkdir -p "$ROOT_DIR/dist"
|
||||
cd "$ROOT_DIR"
|
||||
|
||||
# Go compiles all .go files in the package directory, including untracked files.
|
||||
# A stale local source (e.g. destination_one.go) can break an otherwise green CI.
|
||||
# Refuse to build instead of silently deleting potentially valuable local work.
|
||||
if git rev-parse --is-inside-work-tree >/dev/null 2>&1; then
|
||||
EXTRA_GO="$(git ls-files --others --exclude-standard -- '*.go' | grep -E '^[^/]+\.go$' || true)"
|
||||
if [[ -n "$EXTRA_GO" ]]; then
|
||||
printf 'Build abgebrochen: nicht versionierte Go-Dateien im Projektverzeichnis:\n%s\n' "$EXTRA_GO" >&2
|
||||
echo "Bitte Dateien sichern und aus dem Projektverzeichnis verschieben, bevor du neu baust." >&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
# Startkritische ServeMux-Routen vor dem Build statisch prüfen.
|
||||
# contentPages() registriert seine Slugs später dynamisch als "/"+slug. Deshalb
|
||||
# reicht ein grep nach wörtlichen HandleFunc-Aufrufen nicht aus: Ein Slug darf
|
||||
|
||||
Reference in new issue
Block a user