From a675251b4cd7c8b968cd8fea291ae2a449b10302 Mon Sep 17 00:00:00 2001 From: Jorropo Date: Wed, 7 Dec 2022 15:05:45 +0100 Subject: [PATCH] feat: replace deprecated fx.Extract function by fx.Populate This literally does nothing in our case, the only different between them is that Populate supports embeds while Extract doesn't. However Extract is deprecated and this anoys staticcheck which makes CI fail. --- core/builder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/builder.go b/core/builder.go index aacb51884bd2..7f6cfbe871c1 100644 --- a/core/builder.go +++ b/core/builder.go @@ -84,7 +84,7 @@ func NewNode(ctx context.Context, cfg *BuildCfg) (*IpfsNode, error) { return nil, fmt.Errorf("building fx opts: %w", err) } } - opts = append(opts, fx.Extract(n)) + opts = append(opts, fx.Populate(n)) app := fx.New(opts...)