From e2844ece80f30ca2092d438ca979f7e88a8a4c2a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Mar 2026 19:02:24 +0000 Subject: [PATCH 1/2] build(deps): bump github.com/go-chi/chi/v5 from 5.2.2 to 5.2.5 Bumps [github.com/go-chi/chi/v5](https://github.com/go-chi/chi) from 5.2.2 to 5.2.5. - [Release notes](https://github.com/go-chi/chi/releases) - [Changelog](https://github.com/go-chi/chi/blob/master/CHANGELOG.md) - [Commits](https://github.com/go-chi/chi/compare/v5.2.2...v5.2.5) --- updated-dependencies: - dependency-name: github.com/go-chi/chi/v5 dependency-version: 5.2.5 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index b819ea49..34c1c33c 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,7 @@ require ( github.com/cloudevents/sdk-go/v2 v2.16.2 github.com/cucumber/godog v0.15.1 github.com/fsnotify/fsnotify v1.9.0 - github.com/go-chi/chi/v5 v5.2.2 + github.com/go-chi/chi/v5 v5.2.5 github.com/golobby/cast v1.3.3 github.com/google/uuid v1.6.0 github.com/robfig/cron/v3 v3.0.1 diff --git a/go.sum b/go.sum index bfc601ba..7190b19e 100644 --- a/go.sum +++ b/go.sum @@ -17,8 +17,8 @@ github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1 github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/fsnotify/fsnotify v1.9.0 h1:2Ml+OJNzbYCTzsxtv8vKSFD9PbJjmhYF14k/jKC7S9k= github.com/fsnotify/fsnotify v1.9.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0= -github.com/go-chi/chi/v5 v5.2.2 h1:CMwsvRVTbXVytCk1Wd72Zy1LAsAh9GxMmSNWLHCG618= -github.com/go-chi/chi/v5 v5.2.2/go.mod h1:L2yAIGWB3H+phAw1NxKwWM+7eUH/lU8pOMm5hHcoops= +github.com/go-chi/chi/v5 v5.2.5 h1:Eg4myHZBjyvJmAFjFvWgrqDTXFyOzjj7YIm3L3mu6Ug= +github.com/go-chi/chi/v5 v5.2.5/go.mod h1:X7Gx4mteadT3eDOMTsXzmI4/rwUpOwBHLpAfupzFJP0= github.com/gofrs/uuid v4.2.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= github.com/gofrs/uuid v4.3.1+incompatible h1:0/KbAdpx3UXAx1kEOWHJeOkpbgRFGHVgv+CFIY7dBJI= github.com/gofrs/uuid v4.3.1+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= From 5563f23049c4ecf9265dcdf8b43ba4ed031f7651 Mon Sep 17 00:00:00 2001 From: Jon Langevin Date: Wed, 6 May 2026 15:55:44 -0400 Subject: [PATCH 2/2] fix: wrap module init panic with static error --- application.go | 2 +- errors.go | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/application.go b/application.go index 6b084486..66f2bca4 100644 --- a/application.go +++ b/application.go @@ -739,7 +739,7 @@ func (app *StdApplication) InitWithApp(appToPass Application) error { defer func() { if r := recover(); r != nil { mu.Lock() - errs = append(errs, fmt.Errorf("panic initializing module %s: %v", name, r)) + errs = append(errs, fmt.Errorf("%w %s: %v", ErrModuleInitializationPanic, name, r)) mu.Unlock() } }() diff --git a/errors.go b/errors.go index 0b2c2528..2d9fe570 100644 --- a/errors.go +++ b/errors.go @@ -87,12 +87,13 @@ var ( ErrTenantIsolationViolation = errors.New("tenant isolation violation") // Reload errors - ErrReloadCircuitBreakerOpen = errors.New("reload circuit breaker is open; backing off") - ErrReloadChannelFull = errors.New("reload request channel is full") - ErrReloadInProgress = errors.New("reload already in progress") - ErrReloadStopped = errors.New("reload orchestrator is stopped") - ErrReloadTimeout = errors.New("reload timed out waiting for module") - ErrDynamicReloadNotEnabled = errors.New("dynamic reload not enabled") + ErrReloadCircuitBreakerOpen = errors.New("reload circuit breaker is open; backing off") + ErrReloadChannelFull = errors.New("reload request channel is full") + ErrReloadInProgress = errors.New("reload already in progress") + ErrReloadStopped = errors.New("reload orchestrator is stopped") + ErrReloadTimeout = errors.New("reload timed out waiting for module") + ErrDynamicReloadNotEnabled = errors.New("dynamic reload not enabled") + ErrModuleInitializationPanic = errors.New("panic initializing module") // Observer/Event emission errors ErrNoSubjectForEventEmission = errors.New("no subject available for event emission")