diff --git a/go.mod b/go.mod index ac4145b..38d914d 100644 --- a/go.mod +++ b/go.mod @@ -13,7 +13,6 @@ require ( github.com/go-git/go-billy/v5 v5.3.1 github.com/go-git/go-git/v5 v5.4.2 github.com/go-ini/ini v1.66.4 - github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 github.com/joho/godotenv v1.4.0 github.com/julienschmidt/httprouter v1.3.0 github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 diff --git a/go.sum b/go.sum index 897de00..dae8d03 100644 --- a/go.sum +++ b/go.sum @@ -706,7 +706,6 @@ github.com/google/pprof v0.0.0-20210122040257-d980be63207e/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/rpmpack v0.0.0-20191226140753-aa36bfddb3a0/go.mod h1:RaTPr0KUf2K7fnZYLNDrr8rxAamWs3iNywJLtQ2AzBg= -github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaUGG7oYTSPP8MxqL4YI3kZKwcP4= github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ= github.com/google/subcommands v1.0.1/go.mod h1:ZjhPrFU+Olkh9WazFPsl27BQ4UPiG37m3yTrtFlrHVk= github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= diff --git a/pkg/runner/run_context.go b/pkg/runner/run_context.go index 133a40d..d5eab92 100644 --- a/pkg/runner/run_context.go +++ b/pkg/runner/run_context.go @@ -10,7 +10,7 @@ import ( "runtime" "strings" - "github.com/google/shlex" + "github.com/kballard/go-shellquote" "github.com/spf13/pflag" "github.com/mitchellh/go-homedir" @@ -366,7 +366,7 @@ func (rc *RunContext) hostname() string { optionsFlags := pflag.NewFlagSet("container_options", pflag.ContinueOnError) hostname := optionsFlags.StringP("hostname", "h", "", "") - optionsArgs, err := shlex.Split(c.Options) + optionsArgs, err := shellquote.Split(c.Options) if err != nil { log.Warnf("Cannot parse container options: %s", c.Options) return ""