From 5331226d632b19384ebd63ffb9aaab23544f7e89 Mon Sep 17 00:00:00 2001 From: zongz Date: Mon, 27 May 2024 17:56:14 +0800 Subject: [PATCH] fix: fix failed ci Signed-off-by: zongz --- pkg/cmd/cmd_update.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/cmd/cmd_update.go b/pkg/cmd/cmd_update.go index 6cec4285..44592061 100644 --- a/pkg/cmd/cmd_update.go +++ b/pkg/cmd/cmd_update.go @@ -10,6 +10,7 @@ import ( "slices" "strings" + "github.com/dominikbraun/graph" "github.com/urfave/cli/v2" "golang.org/x/mod/module" "kcl-lang.io/kpm/pkg/client" @@ -106,7 +107,7 @@ func KpmUpdate(c *cli.Context, kpmcli *client.KpmClient) error { return reporter.NewErrorEvent(reporter.FailedUpdatingBuildList, err, "failed to update build list") } - // get all the vertices in the graph + // get all the vertices in the graph modules, err := graph.TopologicalSort(depGraph) if err != nil { return reporter.NewErrorEvent(reporter.FailedTopologicalSort, err, "failed to sort the dependencies")