Remove unused fatih/color dependency to fix CI#2005
Merged
JoannaaKL merged 2 commits intogogithub-updatefrom Feb 12, 2026
Merged
Remove unused fatih/color dependency to fix CI#2005JoannaaKL merged 2 commits intogogithub-updatefrom
JoannaaKL merged 2 commits intogogithub-updatefrom
Conversation
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>
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
Contributor
There was a problem hiding this comment.
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/colorfromgo.mod. - Update
go.sumaccordingly 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
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>
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.
Summary
CI was failing on
go mod tidy -diffcheck due to unused dependencies in go.mod.Why
The
github.com/fatih/colorpackage and its transitive dependencies were declared but never imported. This violated the CI's module tidiness enforcement.What changed
github.com/fatih/color v1.18.0from go.modgithub.com/mattn/go-colorable,github.com/mattn/go-isattyMCP impact
Dependency cleanup only. No functional changes.
Prompts tested (tool changes only)
N/A
Security / limits
Removing unused dependencies reduces attack surface.
Tool renaming
Lint & tests
./script/lint./script/testDocs
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.