1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

chore(deps): update env from v9 to v11 (#4789)

updated env to latest

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
Carlos Alexandro Becker 2024-04-16 22:51:47 -03:00 committed by GitHub
parent 1ed1a62b90
commit 262c8dcbfe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
14 changed files with 37 additions and 37 deletions

2
go.mod
View File

@ -9,7 +9,7 @@ require (
github.com/atc0005/go-teams-notify/v2 v2.10.0
github.com/awslabs/amazon-ecr-credential-helper/ecr-login v0.0.0-20231024185945-8841054dbdb8
github.com/caarlos0/ctrlc v1.2.0
github.com/caarlos0/env/v9 v9.0.0
github.com/caarlos0/env/v11 v11.0.0
github.com/caarlos0/go-reddit/v3 v3.0.1
github.com/caarlos0/go-shellwords v1.0.12
github.com/caarlos0/go-version v0.1.1

4
go.sum
View File

@ -165,8 +165,8 @@ github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx2
github.com/bwesterb/go-ristretto v1.2.3/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0=
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/v9 v9.0.0 h1:SI6JNsOA+y5gj9njpgybykATIylrRMklbs5ch6wO6pc=
github.com/caarlos0/env/v9 v9.0.0/go.mod h1:ye5mlCVMYh6tZ+vCgrs/B95sj88cg5Tlnc0XIzgZ020=
github.com/caarlos0/env/v11 v11.0.0 h1:ZIlkOjuL3xoZS0kmUJlF74j2Qj8GMOq3CDLX/Viak8Q=
github.com/caarlos0/env/v11 v11.0.0/go.mod h1:2RC3HQu8BQqtEK3V4iHPxj0jOdWdbPpWJ6pOueeU1xM=
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.20240105125627-01185134a559 h1:5TPRjT2njvPKzXUcrcg6Dt+JPzQF+M5K7xb5V1Nwteg=

View File

@ -8,7 +8,7 @@ import (
"net/url"
"strconv"
"github.com/caarlos0/env/v9"
"github.com/caarlos0/env/v11"
"github.com/caarlos0/log"
"github.com/goreleaser/goreleaser/internal/tmpl"
"github.com/goreleaser/goreleaser/pkg/context"
@ -53,8 +53,8 @@ func (p Pipe) Announce(ctx *context.Context) error {
return fmt.Errorf("discord: %w", err)
}
var cfg Config
if err = env.Parse(&cfg); err != nil {
cfg, err := env.ParseAs[Config]()
if err != nil {
return fmt.Errorf("discord: %w", err)
}

View File

@ -3,7 +3,7 @@ package linkedin
import (
"fmt"
"github.com/caarlos0/env/v9"
"github.com/caarlos0/env/v11"
"github.com/caarlos0/log"
"github.com/goreleaser/goreleaser/internal/tmpl"
"github.com/goreleaser/goreleaser/pkg/context"
@ -34,8 +34,8 @@ func (Pipe) Announce(ctx *context.Context) error {
return fmt.Errorf("linkedin: %w", err)
}
var cfg Config
if err := env.Parse(&cfg); err != nil {
cfg, err := env.ParseAs[Config]()
if err != nil {
return fmt.Errorf("linkedin: %w", err)
}

View File

@ -3,7 +3,7 @@ package mastodon
import (
"fmt"
"github.com/caarlos0/env/v9"
"github.com/caarlos0/env/v11"
"github.com/caarlos0/log"
"github.com/goreleaser/goreleaser/internal/tmpl"
"github.com/goreleaser/goreleaser/pkg/context"
@ -39,8 +39,8 @@ func (Pipe) Announce(ctx *context.Context) error {
return fmt.Errorf("mastodon: %w", err)
}
var cfg Config
if err := env.Parse(&cfg); err != nil {
cfg, err := env.ParseAs[Config]()
if err != nil {
return fmt.Errorf("mastodon: %w", err)
}

View File

@ -7,7 +7,7 @@ import (
"io"
"net/http"
"github.com/caarlos0/env/v9"
"github.com/caarlos0/env/v11"
"github.com/caarlos0/log"
"github.com/goreleaser/goreleaser/internal/tmpl"
@ -59,8 +59,8 @@ func (Pipe) Announce(ctx *context.Context) error {
return fmt.Errorf("teams: %w", err)
}
var cfg Config
if err := env.Parse(&cfg); err != nil {
cfg, err := env.ParseAs[Config]()
if err != nil {
return fmt.Errorf("mattermost: %w", err)
}

View File

@ -6,7 +6,7 @@ import (
"fmt"
"net/http"
"github.com/caarlos0/env/v9"
"github.com/caarlos0/env/v11"
"github.com/caarlos0/log"
"github.com/goreleaser/goreleaser/internal/tmpl"
"github.com/goreleaser/goreleaser/pkg/context"
@ -50,8 +50,8 @@ func (Pipe) Announce(ctx *context.Context) error {
return fmt.Errorf("opencollective: %w", err)
}
var cfg Config
if err := env.Parse(&cfg); err != nil {
cfg, err := env.ParseAs[Config]()
if err != nil {
return fmt.Errorf("opencollective: %w", err)
}

View File

@ -3,7 +3,7 @@ package reddit
import (
"fmt"
"github.com/caarlos0/env/v9"
"github.com/caarlos0/env/v11"
"github.com/caarlos0/go-reddit/v3/reddit"
"github.com/caarlos0/log"
"github.com/goreleaser/goreleaser/internal/tmpl"
@ -54,8 +54,8 @@ func (Pipe) Announce(ctx *context.Context) error {
URL: url,
}
var cfg Config
if err := env.Parse(&cfg); err != nil {
cfg, err := env.ParseAs[Config]()
if err != nil {
return fmt.Errorf("reddit: %w", err)
}

View File

@ -5,7 +5,7 @@ import (
"fmt"
"strings"
"github.com/caarlos0/env/v9"
"github.com/caarlos0/env/v11"
"github.com/caarlos0/log"
"github.com/goreleaser/goreleaser/internal/tmpl"
"github.com/goreleaser/goreleaser/pkg/context"
@ -42,8 +42,8 @@ func (Pipe) Announce(ctx *context.Context) error {
return fmt.Errorf("slack: %w", err)
}
var cfg Config
if err := env.Parse(&cfg); err != nil {
cfg, err := env.ParseAs[Config]()
if err != nil {
return fmt.Errorf("slack: %w", err)
}

View File

@ -4,7 +4,7 @@ import (
"crypto/tls"
"fmt"
"github.com/caarlos0/env/v9"
"github.com/caarlos0/env/v11"
"github.com/caarlos0/log"
"github.com/goreleaser/goreleaser/internal/tmpl"
"github.com/goreleaser/goreleaser/pkg/config"

View File

@ -5,7 +5,7 @@ import (
goteamsnotify "github.com/atc0005/go-teams-notify/v2"
"github.com/atc0005/go-teams-notify/v2/messagecard"
"github.com/caarlos0/env/v9"
"github.com/caarlos0/env/v11"
"github.com/caarlos0/log"
"github.com/goreleaser/goreleaser/internal/tmpl"
"github.com/goreleaser/goreleaser/pkg/context"
@ -54,8 +54,8 @@ func (p Pipe) Announce(ctx *context.Context) error {
return fmt.Errorf("teams: %w", err)
}
var cfg Config
if err := env.Parse(&cfg); err != nil {
cfg, err := env.ParseAs[Config]()
if err != nil {
return fmt.Errorf("teams: %w", err)
}

View File

@ -4,7 +4,7 @@ import (
"fmt"
"strconv"
"github.com/caarlos0/env/v9"
"github.com/caarlos0/env/v11"
"github.com/caarlos0/log"
api "github.com/go-telegram-bot-api/telegram-bot-api"
"github.com/goreleaser/goreleaser/internal/tmpl"
@ -45,8 +45,8 @@ func (Pipe) Announce(ctx *context.Context) error {
return err
}
var cfg Config
if err := env.Parse(&cfg); err != nil {
cfg, err := env.ParseAs[Config]()
if err != nil {
return fmt.Errorf("telegram: %w", err)
}

View File

@ -3,7 +3,7 @@ package twitter
import (
"fmt"
"github.com/caarlos0/env/v9"
"github.com/caarlos0/env/v11"
"github.com/caarlos0/log"
"github.com/dghubble/go-twitter/twitter"
"github.com/dghubble/oauth1"
@ -38,8 +38,8 @@ func (Pipe) Announce(ctx *context.Context) error {
return fmt.Errorf("twitter: %w", err)
}
var cfg Config
if err := env.Parse(&cfg); err != nil {
cfg, err := env.ParseAs[Config]()
if err != nil {
return fmt.Errorf("twitter: %w", err)
}

View File

@ -9,7 +9,7 @@ import (
"net/url"
"strings"
"github.com/caarlos0/env/v9"
"github.com/caarlos0/env/v11"
"github.com/caarlos0/log"
"github.com/goreleaser/goreleaser/internal/tmpl"
"github.com/goreleaser/goreleaser/pkg/context"
@ -45,8 +45,8 @@ func (p Pipe) Default(ctx *context.Context) error {
}
func (p Pipe) Announce(ctx *context.Context) error {
var cfg Config
if err := env.Parse(&cfg); err != nil {
cfg, err := env.ParseAs[Config]()
if err != nil {
return fmt.Errorf("webhook: %w", err)
}