You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// We need to handle this carefully. GIT SUBMODULES don't support partial checkout easily.
53
-
// User requirements said: "Support the URL.git//path/to/module syntax. If detected, the 'Clone to Temp' step should perform a sparse checkout or copy only the specified subdirectory to the staging area."
54
-
// BUT we are now using `git submodule add` for the final step.
55
-
// `git submodule add` will add the WHOLE repo.
56
-
// If the user wants a subdirectory, we might have a problem with 'git submodule add'.
57
-
// However, the module system seems to rely on the folder structure.
58
-
// If we strictly follow "Identity is Internal", we inspect module.yaml.
59
-
// If the user provided a subdir, we find module.yaml THERE.
60
-
// But `git submodule add` expects a repo URL.
61
-
// We can't do sparse submodule add easily.
62
-
// I will assume for Phase 1 that if a subdir is given, we warn or we add the whole repo but maybe name it differently?
63
-
// Actually, let's look at the instruction: "Support the URL.git//path/to/module syntax... copy only the specified subdirectory to the staging area... Final Placement: Move the validated temporary folder to modules/[Canonical Name]."
64
-
// WAIT. The PLAN was updated to use `git submodule add`.
65
-
// If we use `git submodule add`, we cannot invoke "copy only subdirectory".
66
-
// This is a conflict in requirements vs plan change.
67
-
// Plan update said: "Inspect-then-Submodule".
68
-
// If I detect a subdir, I can't `submodule add` just the subdir.
69
-
// I will implement standard behavior: `submodule add` the specific repo.
70
-
// If `//` is present, I'll extract the module name from THAT subdir's yaml during inspection,
71
-
// BUT I have to submodule add the ROOT repo.
72
-
// This effectively installs the whole repo.
73
-
// To strictly support "only the subdirectory", I would have to use the original "Clone & Move" strategy (no submodule).
74
-
// Since the user explicitly asked for "git submodule add" in the update, I must prioritize that.
75
-
// I will `submodule add` the ROOT repo. I will read module.yaml from the subdir to get the name.
0 commit comments