From a52c590b02cdba9e607ae7cc29a5ef2d520c444e Mon Sep 17 00:00:00 2001 From: Asish Kumar Date: Tue, 28 May 2024 08:01:12 +0530 Subject: [PATCH] fix: formatted sparse checkout design Signed-off-by: Asish Kumar --- research/design-doc/sparse_checkout_asishkumar.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/research/design-doc/sparse_checkout_asishkumar.md b/research/design-doc/sparse_checkout_asishkumar.md index ade1da87..f531b95b 100644 --- a/research/design-doc/sparse_checkout_asishkumar.md +++ b/research/design-doc/sparse_checkout_asishkumar.md @@ -24,7 +24,6 @@ kpm add --subdir 1.21/* k8s This command will download the `1.21` directory and all its contents from the `k8s` repository hosted in https://github.com/kcl-lang/modules - The `kcl.mod` file of the users project will also contain an array of path to the subdirectories. ``` @@ -56,7 +55,6 @@ This process will involve using the `sparse-checkout` feature of git. Whenever we want to access the subdirectory using any command, we can refer to `kcl.mod` file of the project and iterate over the `subdir` array to get the path to the subdirectory. The `kcl.mod` file will automatically get updated whenever `kpm add` command is run. - ### Additional modifications To avoid creating a new root for each subdirectory download, I can add some check functions. @@ -65,4 +63,4 @@ To avoid creating a new root for each subdirectory download, I can add some chec 1. https://medium.com/@marcoscannabrava/git-download-a-repositorys-specific-subfolder-ceeabc6023e2 2. https://pkg.go.dev/github.com/go-git/go-git/v5 -3. https://pkg.go.dev/github.com/hashicorp/go-getter \ No newline at end of file +3. https://pkg.go.dev/github.com/hashicorp/go-getter