Repository navigation
What's Changed
- The shared proxy and a project's nginx reload the configuration madock has just written, not an older view of it. On a Mac running OrbStack 2.2.5, a bind-mounted file rewritten in place on the host was measured on 2026-11-29 to stay behind inside the container: the content arrived within a second or two and the size up to a second later, and after the file had sat unchanged for some minutes the container kept the old size for 40 s, for 52 s, and once for more than two and a half minutes, through a
touchand through a smaller rewrite. nginx reads its configuration up to the size it is told, so a reload in that state failed with "unexpected end of file" or loaded a file cut short, and a project just added byproject:clonegot no route.:delegated, no flag and:robehaved the same. The mounts are unchanged. Before the proxy reloads, and before a project's nginx reloads or one of its services restarts because its mounted files changed, madock compares the size and the SHA-256 of each generated file inside the container with the host's, in onedocker exec; only a file that differs is written from inside the container, through its own mount (sh -c 'cat > path'), and compared again. A file that still differs after that stops the reload or the restart with the file named, and the old configuration keeps serving. A file mounted read-only cannot be written from inside: it is waited for up to 10 s and then named. A container withoutsh,statorsha256sumis not compared, as before. On Linux the two always agree and nothing is written. Each write from inside is recorded indebug.logaswritten into the container from inside, one line with no stack trace and nothing on the screen;logger.Notewrites such lines. Not yet seen against a container caught in the stuck state: one could not be produced on demand afterwards.TestSyncWritesAFileWhoseContentIsNewButSizeIsOldfails when only the content is compared,TestSyncFailsWhenTheWriteFromInsideDoesNotTakewhen the check after the write is skipped,TestSyncWaitsForAReadOnlyFileAndNeverWritesItandTestSyncNamesAReadOnlyFileThatNeverCatchesUpwhen a read-only file is written,TestSyncLeavesAContainerItCannotCompareAlonewhen that case is passed over in silence,TestGeneratedFileMountsListsOnlyWhatMakeConfWrotewhen a mounted directory is not expanded into its files,TestNoteWritesOneLineWithoutAStackwhen a note carries the stack. project:orphanslistsprojects/<name>/directories that have no registry entry. The entry is that directory'sconfig.xml;project:removeends withRemoveAllon the directory, and a file it cannot delete keeps the directory afterconfig.xmlis gone. Nothing named it after that. A directory withoutconfig.xmlwhose name the registry does not hold is now listed as kinddirectory, with its path;bin,dockerandassets, whichprojects/holds beside the projects, are not. Listed only:--removestill takes docker volumes, networks and images and nothing else, and the text says so when a directory is listed.docker.RegisterOrphanSourcelets an edition add what it keeps outside docker (madock Pro adds its zfs datasets). A source that cannot answer is named underunknownin--json(always a list) and as an error line in the text, with a non-zero exit, never as "nothing left";orphansis[]rather thannullwhen empty.TestAProjectDirectoryWithNoRegistryEntryIsListedfails without theconfig.xmlcheck and without the registry check,TestAFailingSourceIsUnknownNotNothingwhen a failing source is dropped.
Full Changelog: v4.6.1...v4.6.3