From 4ee3d416cfec8550261bc7df94cb82d4f98c9c6a Mon Sep 17 00:00:00 2001 From: limpo1989 Date: Wed, 15 Nov 2023 09:48:26 +0800 Subject: [PATCH] Fixed circular dependencies that cause errors due to dependencies --- gs/gs.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gs/gs.go b/gs/gs.go index 67ae9eb0..fc4392ba 100644 --- a/gs/gs.go +++ b/gs/gs.go @@ -284,8 +284,8 @@ func (c *container) Configuration(i interface{}) *BeanDefinition { } } - // depends on parent bean - bd.DependsOn(parentBean.ID()).On(cond.OnBean(parentBean.ID())) + // Inherit the parent conditions + bd.On(cond.OnBean(parentBean.ID())) } return c.Accept(parentBean)