From e66801e0acb4ed3d7cc4371d741b2c5214ff5a54 Mon Sep 17 00:00:00 2001 From: Asish Kumar Date: Thu, 6 Jun 2024 10:18:53 +0530 Subject: [PATCH] removed subdir flag Signed-off-by: Asish Kumar --- research/design-doc/sparse_checkout_asishkumar.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/research/design-doc/sparse_checkout_asishkumar.md b/research/design-doc/sparse_checkout_asishkumar.md index cffdef322..d1bdc2094 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