From 5457c5b5eda80ea6d78f283f9c83b2350171d9be Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 22 Jul 2026 19:17:26 -0700 Subject: [PATCH] ci: fix Deploy Telemetry Server build (nested telemetry/server module) (#10398) ci: build telemetry server from its own module in deploy workflow telemetry/server has had its own go.mod since #9924, so building ./telemetry/server/main.go from the repo root fails with 'no required module provides package'. Build from within the module instead. --- .github/workflows/deploy_telemetry.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy_telemetry.yml b/.github/workflows/deploy_telemetry.yml index 8f3047dce..2c67e51f8 100644 --- a/.github/workflows/deploy_telemetry.yml +++ b/.github/workflows/deploy_telemetry.yml @@ -26,14 +26,17 @@ jobs: - name: Set up Go uses: actions/setup-go@v7 with: - go-version-file: 'go.mod' + go-version-file: 'telemetry/server/go.mod' - name: Build Telemetry Server if: github.event_name == 'workflow_dispatch' && inputs.deploy run: | + # telemetry/server is its own Go module; build from within it + cd telemetry/server go mod tidy echo "Building telemetry server..." - GOOS=linux GOARCH=amd64 go build -o telemetry-server ./telemetry/server/main.go + GOOS=linux GOARCH=amd64 go build -o ../../telemetry-server . + cd ../.. ls -la telemetry-server echo "Build completed successfully"