Closed shubhamdp closed 1 year ago
@mspang Can you please help?
I guess bootstrap.sh
could simply call git submodule update
(without --init
) if third_party/pigweed/repo/pw_env_setup/util.sh
already exists. That way it would preserve the user's choice on which submodules should be fetched.
@Damian-Nordic This would be happening in CI as well right?
CI uses activate.sh
which doesn't do any submodule update if the mentioned util.sh
file exists:
if [ "$_BOOTSTRAP_NAME" = "bootstrap.sh" ] ||
[ ! -f "$_CHIP_ROOT/third_party/pigweed/repo/pw_env_setup/util.sh" ]; then
git submodule update --init
fi
Got it, Shall I put up a PR to remove --init
?
If @mspang is OK with that, I don't have any objections :).
Note --init
is needed if [ ! -f "$_CHIP_ROOT/third_party/pigweed/repo/pw_env_setup/util.sh" ]
. Alternatively, we could simply edit this line to:
git submodule update --init third_party/pigweed/repo
to only update the submodule that bootstrap depends on.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
This is already resolved by https://github.com/project-chip/connectedhomeip/pull/24383
Problem
Clone chip repo to depth 1
Shallow clone the submodules with depth 1 for specific platform
Below is the output for
source scripts/bootstrap.sh
, and it is deep cloning the submodulesProposed Solution
It should not clone the submodules or at least do a shallow copy