Add fx.Self which can be passed to the fx.As annotation to signify
that a type should be provided as itself.
Add fxtest.EnforceTimeout that can be passed to fxtest.NewLifecycle
to force Start and Stop to return context errors when hook context expires.
Changed
fx.Private can now be used with fx.Supply.
Fixed
Fx apps will no longer listen to OS signals when they are stopped,
solving blocking issues in programs that depended on OS signals
after an Fx app stops.
Thank you @MarcoPolo for your contribution to the release.
Add fx.Self which can be passed to the fx.As annotation to signify
that a type should be provided as itself.
Add fxtest.EnforceTimeout that can be passed to fxtest.NewLifecycle
to force Start and Stop to return context errors when hook context expires.
Changed
fx.Private can now be used with fx.Supply.
Fixed
Fx apps will no longer listen to OS signals when they are stopped,
solving blocking issues in programs that depended on OS signals
after an Fx app stops.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps go.uber.org/fx from 1.21.1 to 1.22.0.
Release notes
Sourced from go.uber.org/fx's releases.
Changelog
Sourced from go.uber.org/fx's changelog.
Commits
e6a361e
Prepare Release 1.22.0 (#1208)b3b1c3b
Support fx.Private w/ fx.Supply (#1207)9e6f6c2
fxtest: Enforceable Timeouts on Lifecycle (#1203)abda254
Reference fx.Self in fx.As doc (#1202)7dd18c6
fx.Self: a parameter to fx.As for providing a type as itself (#1201)cb9cccf
Call signal.Stop when signalReceivers is stopped (#1198)696ed9a
chore(deps): Bump golangci/golangci-lint-action from 5 to 6 (#1200)0af84db
chore(deps): Bump golang.org/x/tools from 0.20.0 to 0.21.0 in /tools (#1199)2379ac9
CI: test against go1.22 (#1195)029720f
chore(deps): Bump golangci/golangci-lint-action from 4 to 5 (#1194)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show