fix(ci): use absolute path for replace directive in Docker build

The Docker mounts v3 at the same absolute path, so change the replace
directive to use the absolute workspace path instead of removing it.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Lea Anthony 2026-01-31 23:45:05 +11:00
commit 259c33dfda

View file

@ -96,12 +96,12 @@ jobs:
working-directory: test-cross-compile/crosstest
run: task common:setup:docker
- name: Remove replace directive for Docker build
- name: Fix 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
# Change the replace directive to use absolute path that matches Docker mount
go mod edit -dropreplace github.com/wailsapp/wails/v3
go mod tidy
go mod edit -replace github.com/wailsapp/wails/v3=${{ github.workspace }}/v3
- name: Cross-compile for ${{ matrix.target_os }}/${{ matrix.target_arch }}
working-directory: test-cross-compile/crosstest