Skip to content

Commit

Permalink
fix witness dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
bayashi committed Jan 12, 2025
1 parent a600bb5 commit bba34ac
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
8 changes: 7 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ module github.com/bayashi/highlightrepo
go 1.21.11

require (
github.com/bayashi/witness v0.0.20
github.com/fatih/color v1.18.0
github.com/spf13/pflag v1.0.5
golang.org/x/sys v0.25.0 // indirect
Expand All @@ -17,3 +16,10 @@ require (
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
)

require github.com/bayashi/actually v0.31.0

require (
github.com/google/go-cmp v0.6.0 // indirect
github.com/yassinebenaid/godump v0.11.1 // indirect
)
8 changes: 6 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
github.com/bayashi/actually v0.31.0 h1:gZOETmhl5lhmKOP/tnp2FZp05fIn//U+wzhFazl7nrQ=
github.com/bayashi/actually v0.31.0/go.mod h1:COiU5S5xYyDhYbEs/OVYdmMN7TWIltoKK51PhAHWHvk=
github.com/bayashi/colorpalette v0.0.4 h1:1D7+bs/1fIPDv782zZKHwDtCgOT6qCKHN9t9IOrqIHM=
github.com/bayashi/colorpalette v0.0.4/go.mod h1:VvoV9APBY4B4EkJBFMO9gZa0lsTrKvTe3jYWEXhpU+I=
github.com/bayashi/witness v0.0.20 h1:4SOvdrf7L6dPN8ldy2wet9tFHRimBuVOdd1vRhOGoFI=
github.com/bayashi/witness v0.0.20/go.mod h1:xxXU08y35qzkp0kDRGVYuvHB5JVxFKe6vF16puu7gEo=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM=
github.com/fatih/color v1.18.0/go.mod h1:4FelSpRwEGDpQ12mAdzqdOukCy4u8WUtOY6lkT/6HfU=
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=
github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg=
github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
Expand All @@ -15,6 +17,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
github.com/yassinebenaid/godump v0.11.1 h1:SPujx/XaYqGDfmNh7JI3dOyCUVrG0bG2duhO3Eh2EhI=
github.com/yassinebenaid/godump v0.11.1/go.mod h1:dc/0w8wmg6kVIvNGAzbKH1Oa54dXQx8SNKh4dPRyW44=
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.25.0 h1:r+8e+loiHxRqhXVl6ML1nO3l1+oFoWbnlu2Ehimmi34=
Expand Down
6 changes: 3 additions & 3 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"
"testing"

w "github.com/bayashi/witness"
a "github.com/bayashi/actually"
"github.com/fatih/color"
)

Expand Down Expand Up @@ -36,12 +36,12 @@ func TestRunner_OK(t *testing.T) {
err := cli.runner(&options{color: "cyan"})

if err != nil {
w.Fail(t, "unexpected error", err)
a.Fail(t, "unexpected error", err)
}

g := out.String()
if !strings.HasSuffix(g, tt.expect) {
w.Fail(t, "Not match suffix", g, tt.expect)
a.Fail(t, "Not match suffix", g, tt.expect)
}
})
}
Expand Down

0 comments on commit bba34ac

Please sign in to comment.