diff --git a/research/design-doc/sparse_checkout_asishkumar.md b/research/design-doc/sparse_checkout_asishkumar.md index cffdef32..d1bdc209 100644 --- a/research/design-doc/sparse_checkout_asishkumar.md +++ b/research/design-doc/sparse_checkout_asishkumar.md @@ -14,16 +14,16 @@ The user can just provide the subdir git url. An example command will look like kcl mod add --git https://github.com/kcl-lang/modules/tree/main/argoproj --tag ``` -kpm would parse the git url and extract the subdirectory path using `GetPath()` function from github.com/kubescape/go-git-url package. It will then download the subdirectory and append it in the subdir array of the `kcl.mod` file. +kpm would parse the git url and extract the subdirectory path using `GetPath()` function from github.com/kubescape/go-git-url package. The `kcl.mod` file will look like this: ``` [dependencies] -bbb = { git = "https://github.com/kcl-lang/modules", commit = "ade147b", subdir = ["add-ndots"]} +bbb = { git = "https://github.com/kcl-lang/modules/add-ndots", commit = "ade147b"} +another_bbb = { git = "https://github.com/kcl-lang/modules/another-add-ndots", commit = "ade147b"} ``` -The subdir is a list because in the future if user wants to add another subdir from the same git repo then it can be added without overwritting the current subdir. ## Design