From cfd003448e3def7f4b65399525e676f1854cce78 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 and the struct we are passing doesn't have any embed. 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...)