This release adds a couple of new dbus methods (CancelJob and
GetManagerPropertyContext), fixes a deadlock on subscription shutdown
and a handle leak in journal, and bumps the minimum required Go version
to 1.24.
Notable changes
New API
- dbus: add
Conn.CancelJobto cancel a queued job by its ID. - dbus: add
Conn.GetManagerPropertyContext, a context-aware variant of
GetManagerProperty, which is now deprecated. This was the lastConn
method without a context-aware variant, so a call to it never returned
if systemd was hung.
Bug fixes
- dbus:
SubscribeUnitsCustomContextno longer deadlocks when its context
is cancelled while a channel send is pending; the channels are now closed
when the sender goroutine exits. - journal: fix a file handle leak in an error path.
Compatibility
- The minimum required Go version is now 1.24.
What's Changed
- github: Drop Go module updates by @travier in #506
- Upgrade to go 1.24 and test with go 1.26 by @Luap99 in #515
- scripts/ci-runner.sh: wait for systemd to settle by @kolyshkin in #516
- dbus: Don't deadlock on shutdown by @purpleidea in #514
- add CancelJob() by @solarkennedy in #511
- build(deps): bump actions/checkout from 6 to 7 in the actions group by @dependabot[bot] in #521
- build(deps): bump actions/setup-go from 6 to 7 in the actions group by @dependabot[bot] in #523
- ci: test on debian:bookworm and ubuntu:22.04 by @amccabe in #530
- ci: update to go 1.27 and golangci-lint 2.15 by @Luap99 in #534
- dbus: add GetManagerPropertyContext by @kolyshkin in #535
- Fix handle leak by @ProjectMutilation in #522
New Contributors
- @travier made their first contribution in #506
- @solarkennedy made their first contribution in #511
- @amccabe made their first contribution in #530
- @ProjectMutilation made their first contribution in #522
Full Changelog: v22.7.0...v22.8.0