8000 feat: use lipgloss/v2 by caarlos0 · Pull Request #52 · caarlos0/log · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: use lipgloss/v2 #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 3, 2025
Merged

feat: use lipgloss/v2 #52

merged 4 commits into from
Jul 3, 2025

Conversation

caarlos0
Copy link
Owner
@caarlos0 caarlos0 commented Jul 3, 2025

No description provided.

@caarlos0 caarlos0 self-assigned this Jul 3, 2025
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
@pull-request-size pull-request-size bot added size/L and removed size/M labels Jul 3, 2025
Copy link
codecov bot commented Jul 3, 2025

Codecov Report

Attention: Patch coverage is 84.21053% with 3 lines in your changes missing coverage. Please review.

Project coverage is 78.26%. Comparing base (c5085cc) to head (5c442a4).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
entry.go 83.33% 1 Missing ⚠️
logger.go 83.33% 1 Missing ⚠️
pkg.go 85.71% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #52   +/-   ##
=======================================
  Coverage   78.26%   78.26%           
=======================================
  Files           5        5           
  Lines         207      207           
=======================================
  Hits          162      162           
  Misses         42       42           
  Partials        3        3           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
@caarlos0 caarlos0 requested a review from Copilot July 3, 2025 19:54
Copy link
@Copilot 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

This PR replaces direct usage of Lip Gloss v1 and Termenv with Charm’s ColorProfile wrapper and updates to Lip Gloss v2, modernizes API signatures, and adjusts test expectations to the new ANSI reset code.

  • Wraps the logger’s writer in colorprofile.NewWriter and bumps dependencies to lipgloss/v2.
  • Replaces interface{} with Go 1.18’s any in public APIs.
  • Updates golden test outputs to use \x1b[m reset and sets color environment variables in tests.

Reviewed Changes

Copilot reviewed 11 out of 12 changed files in this pull request and generated no comments.

Show a summary per file
File Description
testdata/*.golden Updated ANSI reset code from \x1b[0m to \x1b[m.
pkg_test.go Removed Lip Gloss init, set color env vars, refactored loop.
pkg.go Added colorprofile.NewWriter; changed interface{}any.
logger.go Switched to *colorprofile.Writer; imported lipgloss/v2.
entry.go Replaced interface{} with any in entry methods.
go.mod Bumped Go version, switched dependencies to colorprofile & Lip Gloss v2.
Comments suppressed due to low confidence (1)

pkg_test.go:46

  • Invalid loop syntax for range 9999 {}. To run 9,999 goroutines, revert to for i := 0; i < 9999; i++ { or use for range [9999]struct{} {}.
	for range 9999 {

@caarlos0 caarlos0 merged commit 0b7245a into main Jul 3, 2025
6 of 7 checks passed
@caarlos0 caarlos0 deleted the v2 branch July 3, 2025 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0