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 <noreply@anthropic.com>
This commit is contained in:
Lea Anthony 2026-01-31 23:38:18 +11:00
commit 513669bf13

View file

@ -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: |