From 513669bf135224ddff4c65d5376cc1e9ace28e22 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Sat, 31 Jan 2026 23:38:18 +1100 Subject: [PATCH] fix(ci): remove replace directive before Docker cross-compile The project created by wails3 init has a replace directive pointing to the local v3 source. This doesn't work inside Docker containers. Remove it before running the cross-compile tasks. Co-Authored-By: Claude Opus 4.5 --- .github/workflows/cross-compile-test-v3.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/cross-compile-test-v3.yml b/.github/workflows/cross-compile-test-v3.yml index 5207d6ac6..d551b6610 100644 --- a/.github/workflows/cross-compile-test-v3.yml +++ b/.github/workflows/cross-compile-test-v3.yml @@ -96,6 +96,13 @@ jobs: working-directory: test-cross-compile/crosstest run: task common:setup:docker + - name: Remove replace directive for Docker build + working-directory: test-cross-compile/crosstest + run: | + # Remove the replace directive since Docker won't have access to the local v3 path + go mod edit -dropreplace github.com/wailsapp/wails/v3 + go mod tidy + - name: Cross-compile for ${{ matrix.target_os }}/${{ matrix.target_arch }} working-directory: test-cross-compile/crosstest run: |