From 86928ff8619411a37e68ac9753565b0e71d94d55 Mon Sep 17 00:00:00 2001 From: Matt Edmonston Date: Sat, 14 Nov 2026 05:46:28 +0000 Subject: [PATCH] Switch to maintained go.yaml.in/yaml/v3 gopkg.in/yaml.v3 is archived upstream. go.yaml.in/yaml/v3 is the YAML organisation's drop-in successor with the same API. Fixes #29 --- go.mod | 2 +- go.sum | 6 ++---- internal/config/config.go | 2 +- internal/provider/exec.go | 2 +- internal/provider/http.go | 2 +- internal/provider/provider.go | 2 +- internal/provider/provider_test.go | 2 +- internal/provider/smtp.go | 2 +- 8 files changed, 9 insertions(+), 11 deletions(-) diff --git a/go.mod b/go.mod index adf4a3c..16aa57e 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,4 @@ module github.com/suprbdev/noty go 1.22 -require gopkg.in/yaml.v3 v3.0.1 +require go.yaml.in/yaml/v3 v3.0.6 diff --git a/go.sum b/go.sum index a62c313..e257a16 100644 --- a/go.sum +++ b/go.sum @@ -1,4 +1,2 @@ -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= -gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +go.yaml.in/yaml/v3 v3.0.6 h1:zcDfvjXEqTQmpjniUBLc91xYJMB2c4QOFxEF/LCEckM= +go.yaml.in/yaml/v3 v3.0.6/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg= diff --git a/internal/config/config.go b/internal/config/config.go index c8ce2f3..74053fd 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -12,7 +12,7 @@ import ( "slices" "strings" - "gopkg.in/yaml.v3" + "go.yaml.in/yaml/v3" ) // Config is the top-level configuration. diff --git a/internal/provider/exec.go b/internal/provider/exec.go index ec70ed9..9835666 100644 --- a/internal/provider/exec.go +++ b/internal/provider/exec.go @@ -8,7 +8,7 @@ import ( "strings" "github.com/suprbdev/noty/internal/render" - "gopkg.in/yaml.v3" + "go.yaml.in/yaml/v3" ) // execConfig runs a local command — the escape hatch for connection types diff --git a/internal/provider/http.go b/internal/provider/http.go index 9a406a3..4620943 100644 --- a/internal/provider/http.go +++ b/internal/provider/http.go @@ -12,7 +12,7 @@ import ( "unicode/utf8" "github.com/suprbdev/noty/internal/render" - "gopkg.in/yaml.v3" + "go.yaml.in/yaml/v3" ) // httpConfig is a generic HTTP sender. It covers webhooks (Slack, Discord, diff --git a/internal/provider/provider.go b/internal/provider/provider.go index bae60ce..41c5f70 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -11,7 +11,7 @@ import ( "github.com/suprbdev/noty/internal/config" "github.com/suprbdev/noty/internal/render" - "gopkg.in/yaml.v3" + "go.yaml.in/yaml/v3" ) // Message is the fully resolved notification handed to a provider. diff --git a/internal/provider/provider_test.go b/internal/provider/provider_test.go index 9200791..d97f6f3 100644 --- a/internal/provider/provider_test.go +++ b/internal/provider/provider_test.go @@ -5,7 +5,7 @@ import ( "testing" "github.com/suprbdev/noty/internal/render" - "gopkg.in/yaml.v3" + "go.yaml.in/yaml/v3" ) // chanNode parses a YAML channel definition into the node form providers diff --git a/internal/provider/smtp.go b/internal/provider/smtp.go index b5daac5..8df6c34 100644 --- a/internal/provider/smtp.go +++ b/internal/provider/smtp.go @@ -19,7 +19,7 @@ import ( "time" "github.com/suprbdev/noty/internal/render" - "gopkg.in/yaml.v3" + "go.yaml.in/yaml/v3" ) // smtpConfig covers plain SMTP servers and every email provider that exposes