Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added design doc for sparse checkout #335
added design doc for sparse checkout #335
Changes from 8 commits
733adb9
6352f5b
a52c590
f4e65e2
3927f04
f113f09
d7da73d
8b66da9
cb6d79d
0192fc0
f99daee
2e83c64
4de7d69
19667bd
87c62be
5247cb1
8c768c3
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are still some things I don't understand here.
If we refer to different directories in the same repository, I think the
kcl.mod
will looks like:And, the two packages are stored in two different directories.
So can you show an example to describe the problem you mentioned above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my proposal, I am trying to achieve this directory structure :
├── .kcl
│ ├── kpm
│ │ ├── modules
│ │ │ ├── k8s
│ │ │ ├── agent
Do you mean this directory structure?
├── .kcl
│ ├── kpm
│ │ ├──modules
│ │ │ └── k8s
│ │ ├── modules
│ │ │ ├── agent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The two file trees you gave above, are they different on the file system 😳 ? They seem to be just different drawings of the same file tree.
The directory structure is correct and I have no problem. My question is, why is there a
subdir
field inkcl.mod
, and why is it alist
. Is there a problem with some mechanism ofgo-getter
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I misunderstood something.
No, there is no problem with go-getter. I have removed subdir flag. Thanks for the suggestion!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#335 (comment)
Should I revert back my subdir/package change in kcl.mod?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @officialasishkumar
I think you can follow the
cargo
design for this feature. I have one question about your design: why do you want to use a list as thesubdir
? You should also add some details about how users can import dependencies in KCL code.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have removed subdir. I think i will be able to parse and download the dependencies by just keeping the whole url.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @officialasishkumar 😄, I think there may be some misunderstandings between us. What needs to be determined in this document is how users can use this function properly. I don't worry about whether this function can be implemented. This feature does not involve some complex and hard parts, and there should be no obstacles to implementation. Maybe you could consider the option I mentioned earlier #335 (comment)