diff --git a/git/clone.go b/git/clone.go index f94e954..ab5a7de 100644 --- a/git/clone.go +++ b/git/clone.go @@ -4,7 +4,7 @@ import ( "fmt" "os" - plugin_exec "github.com/thegeeklab/wp-plugin-go/v3/exec" + plugin_exec "github.com/thegeeklab/wp-plugin-go/v4/exec" ) // FetchSource fetches the source from remote. diff --git a/git/commit.go b/git/commit.go index 5e58bc7..8b533ff 100644 --- a/git/commit.go +++ b/git/commit.go @@ -3,7 +3,7 @@ package git import ( "os" - plugin_exec "github.com/thegeeklab/wp-plugin-go/v3/exec" + plugin_exec "github.com/thegeeklab/wp-plugin-go/v4/exec" ) // Add updates the index to match the working tree. diff --git a/git/config.go b/git/config.go index ef29aa8..c205cab 100644 --- a/git/config.go +++ b/git/config.go @@ -3,7 +3,7 @@ package git import ( "strconv" - plugin_exec "github.com/thegeeklab/wp-plugin-go/v3/exec" + plugin_exec "github.com/thegeeklab/wp-plugin-go/v4/exec" ) // ConfigAutocorrect sets the local git autocorrect configuration for the given repository. diff --git a/git/init.go b/git/init.go index 32e4740..0529bb3 100644 --- a/git/init.go +++ b/git/init.go @@ -3,7 +3,7 @@ package git import ( "os" - plugin_exec "github.com/thegeeklab/wp-plugin-go/v3/exec" + plugin_exec "github.com/thegeeklab/wp-plugin-go/v4/exec" ) // Init creates a new Git repository in the specified directory. diff --git a/git/remote.go b/git/remote.go index 14391e6..f83cee0 100644 --- a/git/remote.go +++ b/git/remote.go @@ -4,7 +4,7 @@ import ( "fmt" "os" - plugin_exec "github.com/thegeeklab/wp-plugin-go/v3/exec" + plugin_exec "github.com/thegeeklab/wp-plugin-go/v4/exec" ) // RemoteRemove drops the defined remote from a git repo. diff --git a/go.mod b/go.mod index e5be8ef..fa6ce31 100644 --- a/go.mod +++ b/go.mod @@ -5,14 +5,14 @@ go 1.23.4 require ( github.com/rs/zerolog v1.33.0 github.com/stretchr/testify v1.10.0 - github.com/thegeeklab/wp-plugin-go/v3 v3.0.9 + github.com/thegeeklab/wp-plugin-go/v4 v4.0.1 github.com/urfave/cli/v2 v2.27.5 ) require ( dario.cat/mergo v1.0.1 // indirect github.com/Masterminds/goutils v1.1.1 // indirect - github.com/Masterminds/semver/v3 v3.3.0 // indirect + github.com/Masterminds/semver/v3 v3.3.1 // indirect github.com/Masterminds/sprig/v3 v3.3.0 // indirect github.com/cpuguy83/go-md2man/v2 v2.0.5 // indirect github.com/davecgh/go-spew v1.1.1 // indirect @@ -20,7 +20,7 @@ require ( github.com/huandu/xstrings v1.5.0 // indirect github.com/joho/godotenv v1.5.1 // indirect github.com/mattn/go-colorable v0.1.13 // indirect - github.com/mattn/go-isatty v0.0.19 // indirect + github.com/mattn/go-isatty v0.0.20 // indirect github.com/mitchellh/copystructure v1.2.0 // indirect github.com/mitchellh/reflectwalk v1.0.2 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect @@ -28,8 +28,8 @@ require ( github.com/shopspring/decimal v1.4.0 // indirect github.com/spf13/cast v1.7.0 // indirect github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect - golang.org/x/crypto v0.29.0 // indirect - golang.org/x/net v0.31.0 // indirect - golang.org/x/sys v0.27.0 // indirect + golang.org/x/crypto v0.31.0 // indirect + golang.org/x/net v0.32.0 // indirect + golang.org/x/sys v0.28.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 02001db..ea86214 100644 --- a/go.sum +++ b/go.sum @@ -2,8 +2,8 @@ dario.cat/mergo v1.0.1 h1:Ra4+bf83h2ztPIQYNP99R6m+Y7KfnARDfID+a+vLl4s= dario.cat/mergo v1.0.1/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk= github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI= github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= -github.com/Masterminds/semver/v3 v3.3.0 h1:B8LGeaivUe71a5qox1ICM/JLl0NqZSW5CHyL+hmvYS0= -github.com/Masterminds/semver/v3 v3.3.0/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM= +github.com/Masterminds/semver/v3 v3.3.1 h1:QtNSWtVZ3nBfk8mAOu/B6v7FMJ+NHTIgUPi7rj+4nv4= +github.com/Masterminds/semver/v3 v3.3.1/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM= github.com/Masterminds/sprig/v3 v3.3.0 h1:mQh0Yrg1XPo6vjYXgtf5OtijNAKJRNcTdOOGZe3tPhs= github.com/Masterminds/sprig/v3 v3.3.0/go.mod h1:Zy1iXRYNqNLUolqCpL4uhk6SHUMAOSCzdgBfDb35Lz0= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= @@ -29,8 +29,9 @@ github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= -github.com/mattn/go-isatty v0.0.19 h1:JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APPA= github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= +github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw= github.com/mitchellh/copystructure v1.2.0/go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HKCj9FbZEVFJRxO9s= github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ= @@ -51,21 +52,21 @@ github.com/spf13/cast v1.7.0 h1:ntdiHjuueXFgm5nzDRdOS4yfT43P5Fnud6DH50rz/7w= github.com/spf13/cast v1.7.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -github.com/thegeeklab/wp-plugin-go/v3 v3.0.9 h1:DI7DjM3BKdG9JxU4dqg6kdnuBzWX9vfr0KhypvmXPJE= -github.com/thegeeklab/wp-plugin-go/v3 v3.0.9/go.mod h1:NbVI6yLLlqRkWhGvGe2bwwD31dYednUkSxVYkM2b+lg= +github.com/thegeeklab/wp-plugin-go/v4 v4.0.1 h1:R9aV21C0868Vt7cfUgIT80VCGdEgeUR1FOnwLKXwC4w= +github.com/thegeeklab/wp-plugin-go/v4 v4.0.1/go.mod h1:G9ReABFui830DgI4jY7Bq3a2Ah4rLLpBX0tM2OgcnWw= github.com/urfave/cli/v2 v2.27.5 h1:WoHEJLdsXr6dDWoJgMq/CboDmyY/8HMMH1fTECbih+w= github.com/urfave/cli/v2 v2.27.5/go.mod h1:3Sevf16NykTbInEnD0yKkjDAeZDS0A6bzhBH5hrMvTQ= github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 h1:gEOO8jv9F4OT7lGCjxCBTO/36wtF6j2nSip77qHd4x4= github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1/go.mod h1:Ohn+xnUBiLI6FVj/9LpzZWtj1/D6lUovWYBkxHVV3aM= -golang.org/x/crypto v0.29.0 h1:L5SG1JTTXupVV3n6sUqMTeWbjAyfPwoda2DLX8J8FrQ= -golang.org/x/crypto v0.29.0/go.mod h1:+F4F4N5hv6v38hfeYwTdx20oUvLLc+QfrE9Ax9HtgRg= -golang.org/x/net v0.31.0 h1:68CPQngjLL0r2AlUKiSxtQFKvzRVbnzLwMUn5SzcLHo= -golang.org/x/net v0.31.0/go.mod h1:P4fl1q7dY2hnZFxEk4pPSkDHF+QqjitcnDjUQyMM+pM= +golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= +golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= +golang.org/x/net v0.32.0 h1:ZqPmj8Kzc+Y6e0+skZsuACbx+wzMgo5MQsJh9Qd6aYI= +golang.org/x/net v0.32.0/go.mod h1:CwU0IoeOlnQQWJ6ioyFrfRuomB8GKF6KbYXZVyeXNfs= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.27.0 h1:wBqf8DvsY9Y/2P8gAfPDEYNuS30J4lPHJxXSb/nJZ+s= -golang.org/x/sys v0.27.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= 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= diff --git a/internal/doc/main.go b/internal/doc/main.go index f0def5b..0fb6d76 100644 --- a/internal/doc/main.go +++ b/internal/doc/main.go @@ -10,8 +10,8 @@ import ( "time" "github.com/thegeeklab/wp-git-action/plugin" - plugin_docs "github.com/thegeeklab/wp-plugin-go/v3/docs" - plugin_template "github.com/thegeeklab/wp-plugin-go/v3/template" + plugin_docs "github.com/thegeeklab/wp-plugin-go/v4/docs" + plugin_template "github.com/thegeeklab/wp-plugin-go/v4/template" ) func main() { diff --git a/plugin/impl.go b/plugin/impl.go index 4125c9d..fd39e15 100644 --- a/plugin/impl.go +++ b/plugin/impl.go @@ -9,9 +9,9 @@ import ( "github.com/rs/zerolog" "github.com/rs/zerolog/log" - plugin_exec "github.com/thegeeklab/wp-plugin-go/v3/exec" - plugin_file "github.com/thegeeklab/wp-plugin-go/v3/file" - plugin_util "github.com/thegeeklab/wp-plugin-go/v3/util" + plugin_exec "github.com/thegeeklab/wp-plugin-go/v4/exec" + plugin_file "github.com/thegeeklab/wp-plugin-go/v4/file" + plugin_util "github.com/thegeeklab/wp-plugin-go/v4/util" ) var ( diff --git a/plugin/plugin.go b/plugin/plugin.go index 609a434..5d96c7b 100644 --- a/plugin/plugin.go +++ b/plugin/plugin.go @@ -4,7 +4,7 @@ import ( "fmt" "github.com/thegeeklab/wp-git-action/git" - plugin_base "github.com/thegeeklab/wp-plugin-go/v3/plugin" + plugin_base "github.com/thegeeklab/wp-plugin-go/v4/plugin" "github.com/urfave/cli/v2" ) diff --git a/plugin/rsync.go b/plugin/rsync.go index 9923fe8..dcfb32b 100644 --- a/plugin/rsync.go +++ b/plugin/rsync.go @@ -3,7 +3,7 @@ package plugin import ( "os" - plugin_exec "github.com/thegeeklab/wp-plugin-go/v3/exec" + plugin_exec "github.com/thegeeklab/wp-plugin-go/v4/exec" ) func SyncDirectories(exclude []string, del bool, src, dest string, debug bool) *plugin_exec.Cmd { diff --git a/plugin/util.go b/plugin/util.go index 9f92dc3..73691e5 100644 --- a/plugin/util.go +++ b/plugin/util.go @@ -5,7 +5,7 @@ import ( "os" "path/filepath" - plugin_exec "github.com/thegeeklab/wp-plugin-go/v3/exec" + plugin_exec "github.com/thegeeklab/wp-plugin-go/v4/exec" ) const (