mirror of
https://github.com/imjasonh/dots
synced 2026-07-07 00:22:55 +00:00
Merge pull request #1 from imjasonh/cursor/-bc-e00bca0f-ab44-48d9-9510-1f4d4047f6c5-a218
chore: update Go dependencies and fix tests in NO_COLOR environments
This commit is contained in:
commit
9419fd6aac
3 changed files with 15 additions and 9 deletions
|
|
@ -7,6 +7,12 @@ import (
|
|||
"testing"
|
||||
)
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
// Cloud/CI environments often set NO_COLOR; color tests need ANSI output enabled.
|
||||
_ = os.Unsetenv("NO_COLOR")
|
||||
os.Exit(m.Run())
|
||||
}
|
||||
|
||||
func TestANSIColorFunctions(t *testing.T) {
|
||||
for _, tt := range []struct {
|
||||
desc string
|
||||
|
|
|
|||
6
go.mod
6
go.mod
|
|
@ -3,8 +3,8 @@ module github.com/imjasonh/dots
|
|||
go 1.25.1
|
||||
|
||||
require (
|
||||
golang.org/x/image v0.33.0 // for resizing
|
||||
golang.org/x/term v0.37.0 // for getting terminal size
|
||||
golang.org/x/image v0.40.0 // for resizing
|
||||
golang.org/x/term v0.43.0 // for getting terminal size
|
||||
)
|
||||
|
||||
require golang.org/x/sys v0.38.0 // indirect
|
||||
require golang.org/x/sys v0.44.0 // indirect
|
||||
|
|
|
|||
12
go.sum
12
go.sum
|
|
@ -1,6 +1,6 @@
|
|||
golang.org/x/image v0.33.0 h1:LXRZRnv1+zGd5XBUVRFmYEphyyKJjQjCRiOuAP3sZfQ=
|
||||
golang.org/x/image v0.33.0/go.mod h1:DD3OsTYT9chzuzTQt+zMcOlBHgfoKQb1gry8p76Y1sc=
|
||||
golang.org/x/sys v0.38.0 h1:3yZWxaJjBmCWXqhN1qh02AkOnCQ1poK6oF+a7xWL6Gc=
|
||||
golang.org/x/sys v0.38.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
|
||||
golang.org/x/term v0.37.0 h1:8EGAD0qCmHYZg6J17DvsMy9/wJ7/D/4pV/wfnld5lTU=
|
||||
golang.org/x/term v0.37.0/go.mod h1:5pB4lxRNYYVZuTLmy8oR2BH8dflOR+IbTYFD8fi3254=
|
||||
golang.org/x/image v0.40.0 h1:Tw4GyDXMo+daZN1znreBRC3VayR1aLFUyUEOLUdW1a8=
|
||||
golang.org/x/image v0.40.0/go.mod h1:uIc348UZMSvS5Z65CVZ7iDPaNobNFEPeJ4kbqTOszmA=
|
||||
golang.org/x/sys v0.44.0 h1:ildZl3J4uzeKP07r2F++Op7E9B29JRUy+a27EibtBTQ=
|
||||
golang.org/x/sys v0.44.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
|
||||
golang.org/x/term v0.43.0 h1:S4RLU2sB31O/NCl+zFN9Aru9A/Cq2aqKpTZJ6B+DwT4=
|
||||
golang.org/x/term v0.43.0/go.mod h1:lrhlHNdQJHO+1qVYiHfFKVuVioJIheAc3fBSMFYEIsk=
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue