github amayer1983/docksentry v1.40.1
v1.40.1 — Compose project-directory fix + contract linter

4 hours ago

Fixed

  • Compose recreates now pass --project-directory when the stack was originally started from a different directory than the compose file's location. Found via a static-analysis audit: the update path accepted the com.docker.compose.project.working_dir label but never used it — so a recreate could resolve .env interpolation / env_file: paths differently than the original up did. Same recreate-fidelity class as #27/#29.

Changed

  • Permanent contract linter (scripts/lint_contracts.py, wired into the pre-commit check): flags functions mixing literal return shapes and same-named methods across classes with conflicting return contracts — the exact class of the v1.37.1 _wait_healthy cascade crash. Verified against a synthetic reproduction of that historical bug. Plus lint cleanup (unused imports/vars, one zip(strict=True)).

Full 24-script regression sweep green.

Don't miss a new docksentry release

NewReleases is sending notifications on new releases.