From 677266b705d24a178c8f2a298ad59a6c2bf20acd Mon Sep 17 00:00:00 2001 From: DeckerSU Date: Fri, 12 Sep 2025 18:58:36 +0200 Subject: [PATCH] build: clean submodules before update to fix build errors Added clean submodules step before `git submodule update` in the build script to ensure submodules are always in a clean state before checkout. This prevents local changes inside `sdk` (e.g. changed build_config.json from assets transformer) from blocking the update step. Fixes: https://github.com/KomodoPlatform/komodo-wallet/issues/3137 --- .docker/build.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.docker/build.sh b/.docker/build.sh index 1fa17c903f..0ceba4e317 100755 --- a/.docker/build.sh +++ b/.docker/build.sh @@ -21,6 +21,8 @@ if command -v git >/dev/null 2>&1; then echo "Ensuring SDK submodule is initialized and pinned..." # Keep local submodule config in sync with .gitmodules (e.g., update=checkout) git submodule sync --recursive || true + # Clean submodules to discard local changes and untracked files + git submodule foreach --recursive "git reset --hard && git clean -fdx" || true # Initialize and checkout recorded commits (pinned) git submodule update --init --recursive --checkout || true # Enable on-demand fetch for submodules (helps when switching branches)