Skip to content

Fix snap release build failure#166

Draft
Copilot wants to merge 1 commit intodevelopfrom
copilot/fix-snap-release-issue
Draft

Fix snap release build failure#166
Copilot wants to merge 1 commit intodevelopfrom
copilot/fix-snap-release-issue

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 6, 2026

Snap build fails because wails build runs go mod tidy which attempts to resolve core/moderation — a git submodule not checked out during snap builds (submodules: false). The module lookup fails with no matching versions for query "latest".

Changes:

  • Add -m flag to wails build to skip the implicit go mod tidy step
  • Replace hardcoded linux-amd64 Go tarball URL with $(dpkg --print-architecture) to support the declared arm64 platform
  • Sync snap version with version file
ARCH=$(dpkg --print-architecture)
curl -fsSL "https://go.dev/dl/go${GO_VERSION}.linux-${ARCH}.tar.gz" -o go.tar.gz
# ...
/root/go/bin/wails build -m -v 2 -tags webkit2_41

@codecov-commenter
Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants