Skip to content

Remove unused logger variables causing lint failures#8514

Merged
pelikhan merged 3 commits intocopilot/refactor-copilot-engine-file-againfrom
copilot/fix-lint-issues
Jan 1, 2026
Merged

Remove unused logger variables causing lint failures#8514
pelikhan merged 3 commits intocopilot/refactor-copilot-engine-file-againfrom
copilot/fix-lint-issues

Conversation

Copy link
Contributor

Copilot AI commented Jan 1, 2026

The golangci-lint check was failing due to unused logger variables declared in two Copilot engine files.

Changes

  • pkg/workflow/copilot_engine.go: Removed unused copilotLog variable and logger import
  • pkg/workflow/copilot_engine_tools.go: Removed unused copilotToolsLog variable and logger import

These logger variables were declared but never referenced in their respective files, causing the unused linter to fail.

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:

  • https://api.github.com/user
    • Triggering command: /usr/bin/gh gh api user --jq .login runs/20260101-211416-68129/test---detach -buildtags ps -errorsas -ifaceassert l/linux_amd64/ve--show-toplevel ps repo�� repos.git -test.v=true /home/REDACTED/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.25.0.linux-amd64/pkg/tool/linux_amd64/coxterm-color -test.run=^Test t l/linux_amd64/vexterm-color /home/REDACTED/go/pkg/mod/golang.o--engine (http block)
    • Triggering command: /usr/bin/gh gh api user --jq .login .git .git /usr/bin/git t0 t 0s git rev-�� 1416-68129/test-purge-invalid-73 /home/REDACTED/go/pkg/mod/golang.o--json (http block)
    • Triggering command: /usr/bin/gh gh api user --jq .login /run/containerd/io.containerd.runtime.v2.task/moby/f0fcb6a1a57b07ce626daf6b50a988b55f63b5e952cb2c3851b4f9e5f1d07be4/init.pid f0fcb6a1a57b07ce626daf6b50a988b55f63b5e952cb2c3851b4f9e5f1d07be4 /usr/bin/git -unreachable=falinfocmp /tmp/go-build164-1 pkg/mod/golang.oxterm-color git rev-�� 8b55f63b5e952cb2c3851b4f9e5f1d07be4 pkg/mod/golang.org/toolchain@v0.0.1-go1.25.0.linux-amd64/pkg/too-test.v=true /usr/bin/git -unreachable=falbash /tmp/go-build164/usr/bin/runc ux-amd64/pkg/too--root git (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Reference: https://github.com/githubnext/gh-aw/actions/runs/20644937293/job/59281590485#step:7:1

Lint

Custom agent used: ci-cleaner
Tidies up the repository CI state by formatting sources, running linters, fixing issues, running tests, and recompiling workflows


💡 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.

Copilot AI and others added 2 commits January 1, 2026 21:11
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix lint issues in project Remove unused logger variables causing lint failures Jan 1, 2026
Copilot AI requested a review from pelikhan January 1, 2026 21:22
@pelikhan pelikhan marked this pull request as ready for review January 1, 2026 21:24
@pelikhan pelikhan merged commit 4fd0ede into copilot/refactor-copilot-engine-file-again Jan 1, 2026
@pelikhan pelikhan deleted the copilot/fix-lint-issues branch January 1, 2026 21:24
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