chore: remove unused github.com/fatih/color#1892
Merged
SamMorrowDrums merged 2 commits intomainfrom Jan 26, 2026
Merged
Conversation
12 tasks
kerobbi
approved these changes
Jan 26, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR removes the unused github.com/fatih/color dependency and improves CI dependency validation by switching from go mod download to go mod tidy -diff.
Changes:
- Removed unused
github.com/fatih/colordependency and its transitive dependencies (mattn/go-colorable,mattn/go-isatty) - Changed CI workflow from
go mod downloadtogo mod tidy -difffor automatic validation of dependency cleanliness - Added Windows-specific workaround for CRLF line ending issues that would cause
go mod tidy -diffto fail
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| go.mod | Removed github.com/fatih/color from direct dependencies |
| go.sum | Removed checksums for fatih/color and its transitive dependencies (mattn/go-colorable, mattn/go-isatty, and unused golang.org/x/sys versions) |
| .github/workflows/go.yml | Added Windows CRLF workaround and changed from go mod download to go mod tidy -diff for better CI validation |
This was referenced Jan 26, 2026
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
Rebased version of #1875 by @alexandear - preserving original authorship.
Removes the unused
github.com/fatih/colordependency and addsgo mod tidy -diffto CI for better dependency validation.Changes
github.com/fatih/colorfromgo.modandgo.sumgo mod downloadtogo mod tidy -diffgo mod tidy -diffCloses #1875
Co-authored-by: Oleksandr Redko oleksandr.red+github@gmail.com