Skip to content

Commit

Permalink
removed subdir flag
Browse files Browse the repository at this point in the history
Signed-off-by: Asish Kumar <[email protected]>
  • Loading branch information
officialasishkumar committed Jun 6, 2024
1 parent 8b66da9 commit e66801e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions research/design-doc/sparse_checkout_asishkumar.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <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

Expand Down

0 comments on commit e66801e

Please sign in to comment.