Skip to content

Fix tls-sidecar CI failure by restoring missing Go module checksums#7

Draft
Copilot wants to merge 4 commits into
copilot/enhance-plugin-ecosystemfrom
copilot/fix-go-sum-dependencies
Draft

Fix tls-sidecar CI failure by restoring missing Go module checksums#7
Copilot wants to merge 4 commits into
copilot/enhance-plugin-ecosystemfrom
copilot/fix-go-sum-dependencies

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 20, 2026

The Windows packaging job was failing because tls-sidecar lacked required go.sum entries for dependencies imported by utls and golang.org/x/net subpackages. This PR updates module metadata so sidecar compilation can resolve those imports deterministically in CI.

  • Dependency metadata update (tls-sidecar)

    • Regenerated module checksums with go mod tidy in tls-sidecar.
    • Added missing checksum entries in tls-sidecar/go.sum for:
      • github.com/refraction-networking/utls
      • golang.org/x/net (including packages used by http2 and proxy)
      • resolved transitive modules (x/crypto, x/sys, x/text, brotli, circl, compress, randomstring).
  • Scope control

    • Kept tls-sidecar/go.mod pinned to go 1.22 (no functional dependency/version changes beyond checksum completion).
cd tls-sidecar
go mod tidy
Original prompt

The PR #6 build is failing because the go.sum file in tls-sidecar is missing entries for dependencies imported by github.com/refraction-networking/utls, golang.org/x/net/http2, and golang.org/x/net/proxy. Run go mod tidy in the tls-sidecar directory (or wherever main.go for the sidecar is located) to download the dependencies and update go.mod and go.sum, then commit the changes to fix the build failure.

The following is the prior conversation context from the user's chat exploration (may be truncated):

User: Please find a solution for failing job 72164830288. Use the logs, job definition, and any referenced files where the failure occurred. Keep your response focused on the solution and include code suggestions when appropriate.

Assistant: The failure in job 72164830288 is caused by missing entries in go.sum for several dependencies imported by the tls-sidecar package (e.g., github.com/refraction-networking/utls, golang.org/x/net/http2, golang.org/x/net/proxy). This prevented the tls-sidecar.exe binary from compiling, which subsequently threw a missing file exception.

Solution

You need to download the missing dependencies and update the go.mod and go.sum files. Assuming the tls-sidecar module is in a subdirectory (or in the root), run the following:

# Navigate to the directory containing main.go / go.mod for tls-sidecar
cd tls-sidecar # (If applicable)

# Download dependencies and update go.mod / go.sum
go mod tidy

# Commit the updated go.mod and go.sum files
git add go.mod go.sum
git commit -m "chore: update go.mod and go.sum"
git push

If the CI pipeline itself is configured incorrectly and missing a dependency fetch step before compiling, ensure your workflow .github/workflows/ci.yml runs go mod download or go mod tidy before the build command.

User: fix this for me now

Assistant: I have dispatched the GitHub Coding Agent to automatically run go mod tidy in the tls-sidecar directory, update the go.sum and go.mod files, and commit those changes to the copilot/enhance-plugin-ecosystem branch.

Waiting for your response to continue.

This pull request was created from Copilot chat.

Copilot AI and others added 3 commits April 20, 2026 16:21
Copilot AI changed the title [WIP] Fix missing entries in go.sum for tls-sidecar Fix tls-sidecar CI failure by restoring missing Go module checksums Apr 20, 2026
Copilot AI requested a review from crazyrob425 April 20, 2026 16:26
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.

2 participants