Skip to content

all: remove go-colorable from log15 modules#182

Merged
kevinburke merged 1 commit into
masterfrom
remove-isatty
May 13, 2026
Merged

all: remove go-colorable from log15 modules#182
kevinburke merged 1 commit into
masterfrom
remove-isatty

Conversation

@kevinburke

Copy link
Copy Markdown
Collaborator

Write terminal output directly when stdout or stderr is a terminal and use x/term for terminal detection. This removes the go-colorable and go-isatty module edges from the root and v3 modules.

Keep the deprecated root term package API available: IsTty now delegates to x/term.IsTerminal, and the exported Termios types remain for source compatibility but are marked deprecated.

go-colorable was a pass-through to os.Stdout and os.Stderr on non-Windows platforms. On Windows this drops go-colorable's fallback ANSI escape translation for older consoles; modern Windows terminals can handle ANSI output directly.

Update compat to the latest currently reachable legacy log15 pseudo-version and the v3.1.0 tag, without adding a local parent-module replace. A follow-up change can move compat to this commit's pseudo-version after it is reachable remotely.

Write terminal output directly when stdout or stderr is a terminal and
use x/term for terminal detection. This removes the go-colorable and
go-isatty module edges from the root and v3 modules.

Keep the deprecated root term package API available: IsTty now
delegates to x/term.IsTerminal, and the exported Termios types remain
for source compatibility but are marked deprecated.

go-colorable was a pass-through to os.Stdout and os.Stderr on
non-Windows platforms. On Windows this drops go-colorable's fallback
ANSI escape translation for older consoles; modern Windows terminals
can handle ANSI output directly.

Update compat to the latest currently reachable legacy log15
pseudo-version and the v3.1.0 tag, without adding a local
parent-module replace. A follow-up change can move compat to this
commit's pseudo-version after it is reachable remotely.
@kevinburke kevinburke merged commit de25451 into master May 13, 2026
6 checks passed
@kevinburke kevinburke deleted the remove-isatty branch May 13, 2026 16:56
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.

1 participant