kcl-lang / kpm

KCL Package Manager
https://kcl-lang.io
Apache License 2.0
27 stars 44 forks source link

[LFX PreTest] `kcl mod graph` to show the dependency graph of KCL package dependencies #263

Closed zong-zhe closed 4 months ago

zong-zhe commented 7 months ago

Feature Request

This is LFX PreTest for https://github.com/kcl-lang/kpm/issues/246, The functionality of kcl mod group is very similar to that of go mod group, with kcl mod group ultimately outputting a dependency graph of a KCL package.

What you need to do

  1. You need to understand how to construct a group or how to design each node in a group, and you don’t need to manually implement a graph and its node data structure, we recommend you try using a good third-party library related to graphs which will save your time.

  2. Starting with the dependencies of the KCL third-party library recorded in kcl.mod, construct a graph structure using a traversal algorithm.

  3. After the construction of the graph is completed, output in the same format as the result of go mod graph.

btwshivam commented 7 months ago

Hey, I am Working on it. Thanks for bringing it up as PreTest.

btwshivam commented 7 months ago

@zong-zhe @Peefy Hey, Hope you both doing well. I want to know What's the deadline for pretest? Weather I need to create a pull request or submit it in the proposal? And also, Is there any Slack channel where we can communicate on issue?

Peefy commented 4 months ago

Closed by #264