deps: Update to github.com/pelletier/go-toml/v2 v2.0.1

This commit is contained in:
Anthony Fok 2022-06-04 03:00:26 -06:00 committed by Bjørn Erik Pedersen
parent 953f215f32
commit 534e7155bb
3 changed files with 5 additions and 5 deletions

View file

@ -127,7 +127,7 @@ func decodeConfig(cfg config.Provider) (deployConfig, error) {
return dcfg, err return dcfg, err
} }
for _, tgt := range dcfg.Targets { for _, tgt := range dcfg.Targets {
if tgt == nil { if *tgt == (target{}) {
return dcfg, errors.New("empty deployment target") return dcfg, errors.New("empty deployment target")
} }
if err := tgt.parseIncludeExclude(); err != nil { if err := tgt.parseIncludeExclude(); err != nil {
@ -136,7 +136,7 @@ func decodeConfig(cfg config.Provider) (deployConfig, error) {
} }
var err error var err error
for _, m := range dcfg.Matchers { for _, m := range dcfg.Matchers {
if m == nil { if *m == (matcher{}) {
return dcfg, errors.New("empty deployment matcher") return dcfg, errors.New("empty deployment matcher")
} }
m.re, err = regexp.Compile(m.Pattern) m.re, err = regexp.Compile(m.Pattern)

2
go.mod
View file

@ -44,7 +44,7 @@ require (
github.com/muesli/smartcrop v0.3.0 github.com/muesli/smartcrop v0.3.0
github.com/niklasfasching/go-org v1.6.2 github.com/niklasfasching/go-org v1.6.2
github.com/olekukonko/tablewriter v0.0.5 github.com/olekukonko/tablewriter v0.0.5
github.com/pelletier/go-toml/v2 v2.0.0-beta.7.0.20220408132554-2377ac4bc04c github.com/pelletier/go-toml/v2 v2.0.1
github.com/rogpeppe/go-internal v1.8.1 github.com/rogpeppe/go-internal v1.8.1
github.com/rwcarlsen/goexif v0.0.0-20190401172101-9e8deecbddbd github.com/rwcarlsen/goexif v0.0.0-20190401172101-9e8deecbddbd
github.com/sanity-io/litter v1.5.5 github.com/sanity-io/litter v1.5.5

4
go.sum
View file

@ -463,8 +463,8 @@ github.com/niklasfasching/go-org v1.6.2 h1:kQBIZlfL4oRNApJCrBgaeNBfzxWzP6XlC7/b7
github.com/niklasfasching/go-org v1.6.2/go.mod h1:wn76Xgu4/KRe43WZhsgZjxYMaloSrl3BSweGV74SwHs= github.com/niklasfasching/go-org v1.6.2/go.mod h1:wn76Xgu4/KRe43WZhsgZjxYMaloSrl3BSweGV74SwHs=
github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec= github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec=
github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY= github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY=
github.com/pelletier/go-toml/v2 v2.0.0-beta.7.0.20220408132554-2377ac4bc04c h1:tgrA7vMkP4q9diPCg3u4Ka4/g3fvkifBu1y9DL+uy7M= github.com/pelletier/go-toml/v2 v2.0.1 h1:8e3L2cCQzLFi2CR4g7vGFuFxX7Jl1kKX8gW+iV0GUKU=
github.com/pelletier/go-toml/v2 v2.0.0-beta.7.0.20220408132554-2377ac4bc04c/go.mod h1:r9LEWfGN8R5k0VXJ+0BkIe7MYkRdwZOjgMj2KwnJFUo= github.com/pelletier/go-toml/v2 v2.0.1/go.mod h1:r9LEWfGN8R5k0VXJ+0BkIe7MYkRdwZOjgMj2KwnJFUo=
github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=