Skip to content

chore(deps): bump github.com/mattn/go-colorable from 0.1.14 to 0.1.15 - #13572

Merged
BagToad merged 1 commit into
trunkfrom
dependabot/go_modules/github.com/mattn/go-colorable-0.1.15
Jun 5, 2026
Merged

BagToad merged 1 commit into
trunkfrom
dependabot/go_modules/github.com/mattn/go-colorable-0.1.15

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 2, 2026

Copy link
Copy Markdown
Contributor

Bumps github.com/mattn/go-colorable from 0.1.14 to 0.1.15.

Commits
  • 8bf39a2 Merge pull request #78 from mattn/windows-write-fastpath
  • d7a88e0 Bump checkout to v4 and setup-go to v5
  • 4dd1c6d Update CI matrix to Go 1.24-1.26
  • 09158f8 Fast path for plaintext writes and cache text attribute on Windows
  • 171d5b4 Add Windows writer benchmarks
  • 74f8ed1 Merge pull request #72 from alexandear/fix-test-typo
  • 50c5b53 Fix typo in TestNonColorableNil
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/mattn/go-colorable](https://github.com/mattn/go-colorable) from 0.1.14 to 0.1.15.
- [Commits](mattn/go-colorable@v0.1.14...v0.1.15)

---
updated-dependencies:
- dependency-name: github.com/mattn/go-colorable
  dependency-version: 0.1.15
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Jun 2, 2026
@dependabot
dependabot Bot requested a review from a team as a code owner June 2, 2026 17:52
@dependabot
dependabot Bot requested a review from BagToad June 2, 2026 17:52
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Jun 2, 2026

@BagToad BagToad left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Audit summary (generated)

Reviewed how we use github.com/mattn/go-colorable and the actual v0.1.14 → v0.1.15 source diff.

Our usage:

  • Direct import in pkg/iostreams/iostreams.go: colorable.NewColorable(os.Stdout) and colorable.NewColorable(os.Stderr), used for Windows ANSI translation when VT processing isn't available.
  • Indirect consumers in our module graph: cli/go-gh, fatih/color, survey, spinner, certificate-transparency-go.

What changed v0.1.14 → v0.1.15:

  • colorable_windows.go is the only file with real logic changes:
    • Adds a curattr field cached on the writer to avoid re-querying console state on every attribute change.
    • Plaintext fast path: if there's no pending state and no 0x1b escape byte in the input, write straight through and skip ANSI parsing entirely.
    • Uses cached w.curattr instead of refetching csbi.attributes; only calls procSetConsoleTextAttribute when the attribute actually changes.
  • Other diffs: typo fix in a test, new benchmarks, CI workflow tweak.
  • go.sum diff is limited to go-colorable itself; no transitive bumps.

Impact on us:

  • Non-Windows: no runtime change.
  • Modern Windows with VT enabled: NewColorable returns the original file unchanged, so no effect.
  • Legacy Windows console: this is our path via IOStreams.System(), but the changes are strict perf improvements. Two tiny theoretical risks worth naming: the plaintext fast path ignores partial-write errors on w.out.Write (negligible for interactive stdout/stderr), and cached curattr could go stale if an external writer mutates console attributes (not a concern for normal gh output).

LGTM.

@BagToad
BagToad merged commit ea72240 into trunk Jun 5, 2026
42 checks passed
@BagToad
BagToad deleted the dependabot/go_modules/github.com/mattn/go-colorable-0.1.15 branch June 5, 2026 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant