1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-08-11 17:50:58 +00:00

deps: remove shlex (#1086)

This commit is contained in:
Ryan 2022-03-29 17:55:40 +02:00 committed by GitHub
parent 8227afc82b
commit a9af533ee6

View file

@ -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 ""