diff --git a/go.mod b/go.mod index 3338ccc604c..6f0df3a46fb 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ require ( github.com/Masterminds/semver/v3 v3.1.1 github.com/atc0005/go-teams-notify/v2 v2.6.1 github.com/caarlos0/ctrlc v1.2.0 - github.com/caarlos0/env/v6 v6.9.3 + github.com/caarlos0/env/v6 v6.10.0 github.com/caarlos0/go-reddit/v3 v3.0.1 github.com/caarlos0/go-shellwords v1.0.12 github.com/caarlos0/log v0.1.2 diff --git a/go.sum b/go.sum index 13b9c13f6dd..ad2135ad0b7 100644 --- a/go.sum +++ b/go.sum @@ -208,8 +208,8 @@ github.com/blakesmith/ar v0.0.0-20190502131153-809d4375e1fb h1:m935MPodAbYS46DG4 github.com/blakesmith/ar v0.0.0-20190502131153-809d4375e1fb/go.mod h1:PkYb9DJNAwrSvRx5DYA+gUcOIgTGVMNkfSCbZM8cWpI= github.com/caarlos0/ctrlc v1.2.0 h1:AtbThhmbeYx1WW3WXdWrd94EHKi+0NPRGS4/4pzrjwk= github.com/caarlos0/ctrlc v1.2.0/go.mod h1:n3gDlSjsXZ7rbD9/RprIR040b7oaLfNStikPd4gFago= -github.com/caarlos0/env/v6 v6.9.3 h1:Tyg69hoVXDnpO5Qvpsu8EoquarbPyQb+YwExWHP8wWU= -github.com/caarlos0/env/v6 v6.9.3/go.mod h1:hvp/ryKXKipEkcuYjs9mI4bBCg+UI0Yhgm5Zu0ddvwc= +github.com/caarlos0/env/v6 v6.10.0 h1:lA7sxiGArZ2KkiqpOQNf8ERBRWI+v8MWIH+eGjSN22I= +github.com/caarlos0/env/v6 v6.10.0/go.mod h1:hvp/ryKXKipEkcuYjs9mI4bBCg+UI0Yhgm5Zu0ddvwc= github.com/caarlos0/go-reddit/v3 v3.0.1 h1:w8ugvsrHhaE/m4ez0BO/sTBOBWI9WZTjG7VTecHnql4= github.com/caarlos0/go-reddit/v3 v3.0.1/go.mod h1:QlwgmG5SAqxMeQvg/A2dD1x9cIZCO56BMnMdjXLoisI= github.com/caarlos0/go-rpmutils v0.2.1-0.20211112020245-2cd62ff89b11 h1:IRrDwVlWQr6kS1U8/EtyA1+EHcc4yl8pndcqXWrEamg= diff --git a/internal/pipe/discord/discord_test.go b/internal/pipe/discord/discord_test.go index 97d564d372a..f8e049234af 100644 --- a/internal/pipe/discord/discord_test.go +++ b/internal/pipe/discord/discord_test.go @@ -36,7 +36,7 @@ func TestAnnounceMissingEnv(t *testing.T) { }, }) require.NoError(t, Pipe{}.Default(ctx)) - require.EqualError(t, Pipe{}.Announce(ctx), `announce: failed to announce to discord: env: environment variable "DISCORD_WEBHOOK_ID" should not be empty`) + require.EqualError(t, Pipe{}.Announce(ctx), `announce: failed to announce to discord: env: environment variable "DISCORD_WEBHOOK_ID" should not be empty; environment variable "DISCORD_WEBHOOK_TOKEN" should not be empty`) } func TestSkip(t *testing.T) { diff --git a/internal/pipe/reddit/reddit_test.go b/internal/pipe/reddit/reddit_test.go index e1d761876d0..b591d4c54ec 100644 --- a/internal/pipe/reddit/reddit_test.go +++ b/internal/pipe/reddit/reddit_test.go @@ -47,7 +47,7 @@ func TestAnnounceMissingEnv(t *testing.T) { }, }) require.NoError(t, Pipe{}.Default(ctx)) - require.EqualError(t, Pipe{}.Announce(ctx), `announce: failed to announce to reddit: env: environment variable "REDDIT_SECRET" should not be empty`) + require.EqualError(t, Pipe{}.Announce(ctx), `announce: failed to announce to reddit: env: environment variable "REDDIT_SECRET" should not be empty; environment variable "REDDIT_PASSWORD" should not be empty`) } func TestSkip(t *testing.T) { diff --git a/internal/pipe/twitter/twitter_test.go b/internal/pipe/twitter/twitter_test.go index ee910b8b54d..f3e90fba6c2 100644 --- a/internal/pipe/twitter/twitter_test.go +++ b/internal/pipe/twitter/twitter_test.go @@ -36,7 +36,7 @@ func TestAnnounceMissingEnv(t *testing.T) { }, }) require.NoError(t, Pipe{}.Default(ctx)) - require.EqualError(t, Pipe{}.Announce(ctx), `announce: failed to announce to twitter: env: environment variable "TWITTER_CONSUMER_KEY" should not be empty`) + require.EqualError(t, Pipe{}.Announce(ctx), `announce: failed to announce to twitter: env: environment variable "TWITTER_CONSUMER_KEY" should not be empty; environment variable "TWITTER_CONSUMER_SECRET" should not be empty; environment variable "TWITTER_ACCESS_TOKEN" should not be empty; environment variable "TWITTER_ACCESS_TOKEN_SECRET" should not be empty`) } func TestSkip(t *testing.T) {