From f333623035450896e2e04c13d4e55dfe3cd5a2f7 Mon Sep 17 00:00:00 2001 From: sysops Date: Fri, 10 Jul 2026 17:53:20 +0200 Subject: [PATCH] Run go mod tidy before build in all installers go.sum was never committed (no local Go toolchain to generate it), causing "missing go.sum entry" build failures on target hosts. go mod tidy regenerates it automatically before go build. Co-Authored-By: Claude Sonnet 5 --- bootstrap.sh | 1 + scripts/install.sh | 1 + scripts/proxmox-install.sh | 1 + 3 files changed, 3 insertions(+) diff --git a/bootstrap.sh b/bootstrap.sh index 9b77bc0..4771c51 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -67,6 +67,7 @@ fi echo "Building wireguard-ui-multi..." cd "$SRC_DIR" +go mod tidy go build -o wireguard-ui-multi ./cmd/wireguard-ui-multi echo "Running native installer..." diff --git a/scripts/install.sh b/scripts/install.sh index a9cae9d..9251cf4 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -19,6 +19,7 @@ fi if [[ ! -f "$BIN_SRC" ]]; then if [[ -d "./cmd/wireguard-ui-multi" ]] && command -v go >/dev/null 2>&1; then echo "Binary not found, building from source with 'go build'..." + go mod tidy go build -o "$BIN_SRC" ./cmd/wireguard-ui-multi else echo "Binary not found at $BIN_SRC and cannot build (need Go toolchain + source). Build it first, e.g.:" >&2 diff --git a/scripts/proxmox-install.sh b/scripts/proxmox-install.sh index 98262fa..f3a1641 100755 --- a/scripts/proxmox-install.sh +++ b/scripts/proxmox-install.sh @@ -161,6 +161,7 @@ echo "Running native installer inside container..." pct exec "$VMID" -- bash -c " set -e cd /opt/wireguard-ui-multi-src + go mod tidy go build -o wireguard-ui-multi ./cmd/wireguard-ui-multi bash scripts/install.sh "