diff --git a/go.mod b/go.mod index 5a16b6a..c97fc2e 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.21 toolchain go1.21.6 require ( - github.com/hashicorp/go-set v0.1.14 + github.com/hashicorp/go-set/v2 v2.1.0 github.com/shoenig/go-landlock v1.2.0 github.com/shoenig/ignore v0.4.0 github.com/shoenig/test v1.7.0 @@ -16,7 +16,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/gojuno/minimock/v3 v3.3.6 // indirect github.com/google/go-cmp v0.6.0 // indirect - github.com/hashicorp/go-set/v2 v2.1.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect golang.org/x/sys v0.16.0 // indirect kernel.org/pub/linux/libs/security/libcap/psx v1.2.69 // indirect diff --git a/go.sum b/go.sum index a4fdd6b..c53726d 100644 --- a/go.sum +++ b/go.sum @@ -17,8 +17,6 @@ github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5y github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 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/hashicorp/go-set v0.1.14 h1:ZU7JyS6QGueDuXYldjcuyKLR0XV14eOKcsQlGddXGgA= -github.com/hashicorp/go-set v0.1.14/go.mod h1:FH9zJxnQYHPlZ7j9JaoQjZOFPBStOrelKOE11Wjwirc= github.com/hashicorp/go-set/v2 v2.1.0 h1:iERPCQWks+I+4bTgy0CT2myZsCqNgBg79ZHqwniohXo= github.com/hashicorp/go-set/v2 v2.1.0/go.mod h1:6q4nh8UCVZODn2tJ5RbJi8+ki7pjZBsAEYGt6yaGeTo= github.com/hexdigest/gowrap v1.1.7/go.mod h1:Z+nBFUDLa01iaNM+/jzoOA1JJ7sm51rnYFauKFUB5fs= diff --git a/internal/command/exec.go b/internal/command/exec.go index 1cd6a5d..4b559d3 100644 --- a/internal/command/exec.go +++ b/internal/command/exec.go @@ -6,7 +6,7 @@ import ( "path/filepath" "sort" - "github.com/hashicorp/go-set" + "github.com/hashicorp/go-set/v2" "github.com/shoenig/go-landlock" "github.com/shoenig/ssh-key-sync/internal/config" "github.com/shoenig/ssh-key-sync/internal/logs" diff --git a/internal/command/exec_test.go b/internal/command/exec_test.go index e286b9f..27153e7 100644 --- a/internal/command/exec_test.go +++ b/internal/command/exec_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "github.com/hashicorp/go-set" + "github.com/hashicorp/go-set/v2" "github.com/shoenig/ssh-key-sync/internal/logs" "github.com/shoenig/ssh-key-sync/internal/ssh" "github.com/shoenig/test/must" diff --git a/internal/netapi/client.go b/internal/netapi/client.go index 9956dae..d0fa59b 100644 --- a/internal/netapi/client.go +++ b/internal/netapi/client.go @@ -4,7 +4,7 @@ import ( "net/http" "time" - "github.com/hashicorp/go-set" + "github.com/hashicorp/go-set/v2" "github.com/shoenig/ssh-key-sync/internal/ssh" ) diff --git a/internal/netapi/github.go b/internal/netapi/github.go index 170a5fa..de00f3d 100644 --- a/internal/netapi/github.go +++ b/internal/netapi/github.go @@ -7,7 +7,7 @@ import ( "net/http" "strings" - "github.com/hashicorp/go-set" + "github.com/hashicorp/go-set/v2" "github.com/shoenig/ignore" "github.com/shoenig/ssh-key-sync/internal/config" "github.com/shoenig/ssh-key-sync/internal/logs" diff --git a/internal/ssh/reader.go b/internal/ssh/reader.go index fa2fb5f..d40d171 100644 --- a/internal/ssh/reader.go +++ b/internal/ssh/reader.go @@ -6,7 +6,7 @@ import ( "os" "strings" - "github.com/hashicorp/go-set" + "github.com/hashicorp/go-set/v2" ) type KeysReader interface {