fix: use go mod tidy -e to unblock CI Optimization Coach from gopls v0.21.1 incompatibility#18370
Closed
fix: use go mod tidy -e to unblock CI Optimization Coach from gopls v0.21.1 incompatibility#18370
go mod tidy -e to unblock CI Optimization Coach from gopls v0.21.1 incompatibility#18370Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
…ency issue Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Debug CI Optimization Coach workflow failure
fix: use Feb 25, 2026
go mod tidy -e to unblock CI Optimization Coach from gopls v0.21.1 incompatibility
Copilot stopped work on behalf of
pelikhan due to an error
February 25, 2026 16:31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The CI Optimization Coach workflow was failing in the pre-agent build step because
go mod tidy(run viamake deps-dev) exits with code 1. Root cause:golang.org/x/tools/gopls v0.21.1has test-transitive dependencies ongolang.org/x/tools/internal/mcp, which does not exist ingolang.org/x/tools v0.42.0(current latest stable). Regular CI is unaffected since it runsgo mod downloadonly.Changes
Makefile: Changego mod tidy→go mod tidy -ein thedepstarget. The-eflag (error-tolerant mode) lets tidy proceed past unresolvable packages and exit 0.go.sum: Remove stalegolang.org/x/tools v0.41.0entries cleaned up bygo mod tidy -e.The
internal/mcpincompatibility is a known forward-dependency issue withgopls v0.21.1being released ahead of the corresponding stablegolang.org/x/toolstag. The-eflag can be dropped oncegolang.org/x/tools v0.43.0+ships withinternal/mcp.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
go.googlesource.com/usr/lib/git-core/git-remote-https /usr/lib/git-core/git-remote-https REDACTED REDACTED e/git(dns block)https://api.github.com/graphql/usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw(http block)/usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw -pack /home/REDACTED/work/gh-aw/gh-aw/pkg/cli/access_log.go /home/REDACTED/work/gh-aw/gh-aw/pkg/cli/actionlint.go(http block)/usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw pkg/mod/golang.oinit bin/grep /tmp/go-build2209732627/b407/parser.test t-17�� k/gh-aw/gh-aw/.github/workflows/artifacts-summary.md -test.v=true /opt/hostedtoolcache/node/24.13.0/x64/bin/node -test.timeout=10git -test.run=^Test -test.short=true--show-toplevel node(http block)https://api.github.com/repos/actions/ai-inference/git/ref/tags/v1/usr/bin/gh gh api /repos/actions/ai-inference/git/ref/tags/v1 --jq .object.sha ipts.test -buildtags ortcfg.link l -ifaceassert -nilfunc U8IGZ3xsiiK_VzgSGT/jqXiqKS2mm7rG7KRlb0f/T36gUPQZ--json -uns�� pkg/mod/github.com/stretchr/testify@v1.11.1/requ--workflow(http block)https://api.github.com/repos/actions/checkout/git/ref/tags/11bd71901bbe5b1630ceea73d27597364c9af683/usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/11bd71901bbe5b1630ceea73d27597364c9af683 --jq .object.sha(http block)https://api.github.com/repos/actions/checkout/git/ref/tags/v3/usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v3 --jq .object.sha g_.a 9732627/b012/vet.cfg x_amd64/link ./../.prettieriggit ire cal/bin/grep x_amd64/link /opt�� 2554-10649/test-3094161137/.github/workflows --write ache/go/1.25.0/x64/pkg/tool/linux_amd64/vet **/*.ts **/*.json --ignore-path GT/jqXiqKS2mm7rG7KRlb0f/T36gUPQZ--json(http block)https://api.github.com/repos/actions/checkout/git/ref/tags/v4/usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v4 --jq .object.sha vaScript2113367428/001/test-comp-s --always eutil.test --ignore-path ..git @v0.20.0/internarev-parse modules/@npmcli/--show-toplevel eutil.test 2097�� -unreachable=false /tmp/go-build2209732627/b078/vet.cfg 9732627/b184/vet.cfg /mcp @v0.20.0/internarev-parse /usr/local/sbin/--show-toplevel /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linuremote.origin.url(http block)/usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v4 --jq .object.sha blob a28267b308510faf42e75759e2fec5852843a689:go.mod Name,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle /mcp @v0.20.0/internarev-parse cal/bin/grep /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/vet -uns�� -unreachable=false /tmp/go-build2209732627/b094/vet.cfg 9732627/b361/vet.cfg /mcp @v0.20.0/internarev-parse /home/REDACTED/.lo--show-toplevel /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/vet(http block)/usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v4 --jq .object.sha image:v1.0.0 grep /usr/bin/git d pkg/mod/golang.orev-parse nch,headSha,disp--show-toplevel git rev-�� --show-toplevel x_amd64/vet /usr/bin/git ub/workflows /home/REDACTED/go/rev-parse x_amd64/vet git(http block)https://api.github.com/repos/actions/checkout/git/ref/tags/v5/usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha 1608298690/.github/workflows .cfg 64/pkg/tool/linux_amd64/vet /mcp ts/constraint.goinit rep 64/pkg/tool/linux_amd64/vet --no�� te 'scripts/**/*.js' --ignore-path .prettierignore .cfg x_amd64/link go.mod go.sum cal/bin/grep x_amd64/link(http block)/usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha ithub/workflows/brave.md ripts/lint_error_messages_test.go /usr/bin/git -errorsas -ifaceassert -nilfunc git rev-�� --show-toplevel -tests /usr/bin/git /mcp rg/x/tools/goplsrev-parse 64/bin/bash git(http block)/usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha --show-toplevel x_amd64/link /usr/bin/git /mcp pkg/mod/golang.orev-parse x_amd64/vet git rev-�� --show-toplevel tDxh6_4/9rUbv3kNtest@example.com /opt/hostedtoolcache/node/24.13.0/x64/bin/node m/workflows /home/REDACTED/go/rev-parse x_amd64/vet /opt/hostedtoolcache/node/24.13.0/x64/bin/node(http block)https://api.github.com/repos/actions/checkout/git/ref/tags/v6/usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq .object.sha(http block)https://api.github.com/repos/actions/github-script/git/ref/tags/v7/usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v7 --jq .object.sha(http block)https://api.github.com/repos/actions/github-script/git/ref/tags/v8/usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha /mcp rg/x/tools/goplsgithub.com/github/gh-aw/cmd/gh-aw rep /mcp go 64/bin/grep grep -l /mcp rg/x/tools/gopls-nolocalimports cal/bin/grep /mcp al_test.go ache/go/1.25.0/x-unreachable=false grep(http block)/usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha -c=4 -nolocalimports -importcfg /tmp/go-build2209732627/b383/importcfg -embedcfg /tmp/go-build2209732627/b383/embedcfg -pack ode_�� /mcp pkg/mod/golang.o-ifaceassert ache/go/1.25.0/x-nilfunc /mcp go rep grep(http block)/usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha -c=4 -nolocalimports -importcfg /tmp/go-build2209732627/b395/importcfg -pack /home/REDACTED/work/gh-aw/gh-aw/pkg/fileutil/fileutil.go /home/REDACTED/work/gh-aw/gh-aw/pkg/fileutil/tar.go ode_�� /mcp pkg/mod/golang.org/x/tools/gopls--ignore-path _modules/.bin/node /mcp interceptor_testrev-parse 64/bin/grep grep(http block)https://api.github.com/repos/actions/setup-go/git/ref/tags/4dc6199c7b1a012772edbd06daecab0f50c9053c/usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/4dc6199c7b1a012772edbd06daecab0f50c9053c --jq .object.sha(http block)https://api.github.com/repos/actions/setup-go/git/ref/tags/v4/usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v4 --jq .object.sha brave.md _messages_test.go /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/vet --format=%H:%ct @v0.20.0/internarev-parse bin/grep /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/vet -uns�� -unreachable=false /tmp/go-build2209732627/b048/vet.cfg 9732627/b363/vet.cfg /mcp @v0.20.0/internarev-parse nfig/composer/ve--show-toplevel /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/vet(http block)https://api.github.com/repos/actions/setup-go/git/ref/tags/v5/usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v5 --jq .object.sha(http block)https://api.github.com/repos/actions/setup-go/git/ref/tags/v6/usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v6 --jq .object.sha(http block)https://api.github.com/repos/actions/setup-node/git/ref/tags/v4/usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq .object.sha -ldflags -s -w -X main.version=a28267b-di-test.run=^Test /opt/hostedtoolcache/go/1.25.0/x-test.short=true gh-aw ./cmd/gh-aw /home/REDACTED/.lo--show-toplevel /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/vet -uns�� runs/20260225-162554-10649/test-3748929518/.github/workflows /tmp/go-build2209732627/b083/vet.cfg 9732627/b359/vet.cfg /mcp @v0.20.0/internarev-parse ep /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/vet(http block)https://api.github.com/repos/actions/setup-node/git/ref/tags/v6/usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v6 --jq .object.sha(http block)https://api.github.com/repos/anchore/sbom-action/git/ref/tags/v0/usr/bin/gh gh api /repos/anchore/sbom-action/git/ref/tags/v0 --jq .object.sha(http block)https://api.github.com/repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b/usr/bin/gh gh api /repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b --jq .object.sha(http block)https://api.github.com/repos/docker/build-push-action/git/ref/tags/v6/usr/bin/gh gh api /repos/docker/build-push-action/git/ref/tags/v6 --jq .object.sha(http block)https://api.github.com/repos/docker/login-action/git/ref/tags/v3/usr/bin/gh gh api /repos/docker/login-action/git/ref/tags/v3 --jq .object.sha(http block)https://api.github.com/repos/docker/metadata-action/git/ref/tags/v5/usr/bin/gh gh api /repos/docker/metadata-action/git/ref/tags/v5 --jq .object.sha(http block)https://api.github.com/repos/docker/setup-buildx-action/git/ref/tags/v3/usr/bin/gh gh api /repos/docker/setup-buildx-action/git/ref/tags/v3 --jq .object.sha(http block)https://api.github.com/repos/github/gh-aw/actions/runs/1/artifactsCo-authored-by: pelikhan <4175913+pelikhan@users.noreprev-parse 64/pkg/tool/linux_amd64/vet /mcp uzz_test.go ep 64/pkg/tool/linux_amd64/vet m/_c�� x/tools/internal/mcp .cfg 64/pkg/tool/linux_amd64/vet /mcp nt/fingerprint_tconfig /opt/pipx_bin/gr--get 64/pkg/tool/linuremote.origin.url` (http block)
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.