aboutsummaryrefslogtreecommitdiff
path: root/gui/internal/model/history.go
Commit message (Collapse)AuthorAgeFilesLines
* the applying flag is atomic; its test waits instead of pollingLukasz Kasprzak48 hours1-5/+6
| | | | | | | The race detector found my own new flag: Apply writes it on a worker and Close reads it from the main loop. The test was polling a plain field too, where the real window hears about the apply on the main loop, which orders the writes.
* the window cannot pull the lock out from under a running applyLukasz Kasprzak48 hours1-0/+9
| | | | | | | | | | | | | | | | | | Close releases the directory lock and closes the log. The window could reach it while an apply was still running - saving rules, saving settings, adding a directory, or closing the window - and the engine then went on moving files with the log shut underneath: a file moved that no krino undo can see, the rest of the plan silently abandoned, and the directory unlocked while krino was still working in it. PlanTab and UndoTab refuse to close while their apply is in flight (model.ErrApplying), the window's close request and reloadEngine honour the refusal instead of ignoring it, and the tabs and Settings are greyed out for the duration so a button that cannot work says so by being unavailable rather than by an error afterwards. The test starts an apply, calls Close from another goroutine while it is in flight, and requires the refusal.
* the module path is git.labunix.xyz/krinoLukasz Kasprzak2 days1-3/+3
| | | | | | | | | | | So that go install can find it. cgit serves no go-import meta tag, so nginx answers a ?go-get=1 request for /NAME with one pointing at https://git.labunix.xyz/NAME.git; the alternative was carrying a .git suffix through every import line forever. One sed over the imports, both go.mod files, and the dependency gate's whitelist. Nothing else depends on the path. go install works from the next tag, the first release whose go.mod carries it.
* gui: History and undo tab; each plan and undo is its own runLukasz Kasprzak3 days1-0/+280