Skip to content

Commit

Permalink
chore(deps): bump github.com/clambin/go-common/set to v0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
clambin committed Feb 12, 2025
1 parent 0a1437f commit c5ee8fb
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
module github.com/clambin/grope

go 1.23.3
go 1.24

toolchain go1.23.4
toolchain go1.24.0

require (
github.com/clambin/go-common/charmer v0.2.0
github.com/clambin/go-common/set v0.4.3
github.com/clambin/go-common/set v0.5.0
github.com/go-openapi/strfmt v0.23.0
github.com/gosimple/slug v1.15.0
github.com/grafana/grafana-openapi-client-go v0.0.0-20250108132429-8d7e1f158f65
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ github.com/clambin/go-common/charmer v0.2.0 h1:RLqdH1pRVQUBSKRPpKgDVlad6St3FyFDO
github.com/clambin/go-common/charmer v0.2.0/go.mod h1:8Y/XKmTspOZ9xc0fgV8mvYS0mkXBuAidO3MCJLCMfrg=
github.com/clambin/go-common/set v0.4.3 h1:Sm9lkAJsh82j40RDpfQIziHyHjwr07+KsQF6vgCVXm4=
github.com/clambin/go-common/set v0.4.3/go.mod h1:Q5GpBoM7B7abNV2Wzys+wQMInBHMoHyh/h0Cn2OmY4A=
github.com/clambin/go-common/set v0.5.0 h1:BIisdR8LMje4ts+hKUmjgfvEbiK1741mbPCz4P7q72o=
github.com/clambin/go-common/set v0.5.0/go.mod h1:u7nCKTzg7K2cMgXYvBOExhF2aNjP674wCs6B6z+mNHU=
github.com/clambin/go-common/testutils v0.1.0 h1:/nGWaOCIhW+Ew1c2NU7GLY/YPb8dp9SV8+MTgWksAgk=
github.com/clambin/go-common/testutils v0.1.0/go.mod h1:bV0j8D4zhNkleCeluFKLBeLQ0L/dqkxbaR/joLn8kzg=
github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
Expand Down
11 changes: 5 additions & 6 deletions internal/grope/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"os"
"path/filepath"
"testing"
)

Expand Down Expand Up @@ -32,12 +33,10 @@ not-a-valid-yaml-file

for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
tmpFile, err := os.CreateTemp("", "*.yaml")
configFilename = tmpFile.Name()
require.NoError(t, err)
_, _ = tmpFile.Write([]byte(tt.config))
_ = tmpFile.Close()
defer func() { _ = os.Remove(tmpFile.Name()) }()
tmpDir := t.TempDir()
configFilename = filepath.Join(tmpDir, "config.yaml")

require.NoError(t, os.WriteFile(configFilename, []byte(tt.config), 0644))

v := viper.New()
initViper(v)
Expand Down
4 changes: 2 additions & 2 deletions internal/grope/exporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
"github.com/spf13/viper"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"io"
"log/slog"
"os"
"path/filepath"
Expand Down Expand Up @@ -110,9 +109,10 @@ func TestExportDashboards(t *testing.T) {
},
}

l := slog.New(slog.DiscardHandler)

for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
l := slog.New(slog.NewTextHandler(io.Discard, nil))
exp, err := makeExporter(tt.config(), l)
tt.wantErr(t, err)

Expand Down

0 comments on commit c5ee8fb

Please sign in to comment.