Skip to content

Remove unused fatih/color dependency to fix CI#2005

Merged
JoannaaKL merged 2 commits intogogithub-updatefrom
copilot/fix-github-actions-workflow-again
Feb 12, 2026
Merged

Remove unused fatih/color dependency to fix CI#2005
JoannaaKL merged 2 commits intogogithub-updatefrom
copilot/fix-github-actions-workflow-again

Conversation

Copy link
Contributor

Copilot AI commented Feb 12, 2026

Summary

CI was failing on go mod tidy -diff check due to unused dependencies in go.mod.

Why

The github.com/fatih/color package and its transitive dependencies were declared but never imported. This violated the CI's module tidiness enforcement.

What changed

  • Removed github.com/fatih/color v1.18.0 from go.mod
  • Removed transitive deps: github.com/mattn/go-colorable, github.com/mattn/go-isatty

MCP impact

  • No tool or API changes

Dependency cleanup only. No functional changes.

Prompts tested (tool changes only)

N/A

Security / limits

  • No security or limits impact

Removing unused dependencies reduces attack surface.

Tool renaming

  • I am not renaming tools as part of this PR

Lint & tests

  • Linted locally with ./script/lint
  • Tested locally with ./script/test

Docs

  • Not needed
Original prompt

Fix the failing GitHub Actions workflow build (ubuntu-latest)
Analyze the workflow logs, identify the root cause of the failure, and implement a fix.
Job ID: 63368595800
Job URL: https://github.com/github/github-mcp-server/actions/runs/21941629328/job/63368595800


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

The fatih/color package was listed in go.mod but not actually imported
or used anywhere in the codebase. This caused the CI "go mod tidy -diff"
check to fail. Running go mod tidy removed:
- github.com/fatih/color v1.18.0
- github.com/mattn/go-colorable v0.1.13 (transitive)
- github.com/mattn/go-isatty v0.0.20 (transitive)

Fixes the failing ubuntu-latest workflow build.

Co-authored-by: JoannaaKL <67866556+JoannaaKL@users.noreply.github.com>
@JoannaaKL JoannaaKL marked this pull request as ready for review February 12, 2026 09:58
@JoannaaKL JoannaaKL requested a review from a team as a code owner February 12, 2026 09:58
Copilot AI review requested due to automatic review settings February 12, 2026 09:58
Copilot AI changed the title [WIP] Fix failing GitHub Actions workflow build on ubuntu-latest Remove unused fatih/color dependency to fix CI Feb 12, 2026
Copilot AI requested a review from JoannaaKL February 12, 2026 09:59
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes an unused Go dependency to fix the CI failure caused by the go mod tidy -diff enforcement in the Ubuntu GitHub Actions build.

Changes:

  • Remove github.com/fatih/color from go.mod.
  • Update go.sum accordingly to drop now-unused transitive entries.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
go.mod Removes the unused github.com/fatih/color requirement (and related indirect deps).
go.sum Prunes checksums for fatih/color and its unused transitive dependencies after tidying.

@JoannaaKL JoannaaKL merged commit ae824f2 into gogithub-update Feb 12, 2026
19 checks passed
@JoannaaKL JoannaaKL deleted the copilot/fix-github-actions-workflow-again branch February 12, 2026 10:01
JoannaaKL added a commit that referenced this pull request Feb 12, 2026
* Bump google/go-github

* chore: regenerate license files

Auto-generated by license-check workflow

* Fix required block

* Go mod vendor and tidy again

* Remove unused fatih/color dependency to fix CI (#2005)

* Initial plan

* Remove unused github.com/fatih/color dependency

The fatih/color package was listed in go.mod but not actually imported
or used anywhere in the codebase. This caused the CI "go mod tidy -diff"
check to fail. Running go mod tidy removed:
- github.com/fatih/color v1.18.0
- github.com/mattn/go-colorable v0.1.13 (transitive)
- github.com/mattn/go-isatty v0.0.20 (transitive)

Fixes the failing ubuntu-latest workflow build.

Co-authored-by: JoannaaKL <67866556+JoannaaKL@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: JoannaaKL <67866556+JoannaaKL@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
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

Comments