When setting the `--app` flag, there was a special case for the config plugin. This plugin used to take the `--no-restart` flag as the first argument - and still did until this change - resulting in an invalid call to the plugin subcommands. What is worse is that this functionality carried over to all other plugins as they were rewritten in golang, and thus the issue spread without us knowing. The fix is to support GNU flag parsing rules, which Golang does not do by default (Because Of Reasons™). Switching to `github.com/spf13/pflag` fixes this issue, and also allows positional arguments to be placed wherever, even in the middle of flags. Closes #4255
20 lines
697 B
Modula-2
20 lines
697 B
Modula-2
module github.com/dokku/dokku/plugins/ps
|
|
|
|
go 1.14
|
|
|
|
require (
|
|
github.com/codeskyblue/go-sh v0.0.0-20190412065543-76bd3d59ff27
|
|
github.com/dokku/dokku/plugins/common v0.0.0-00010101000000-000000000000
|
|
github.com/dokku/dokku/plugins/config v0.0.0-00010101000000-000000000000
|
|
github.com/dokku/dokku/plugins/docker-options v0.0.0-00010101000000-000000000000
|
|
github.com/gofrs/flock v0.8.0
|
|
github.com/ryanuber/columnize v1.1.2-0.20190319233515-9e6335e58db3
|
|
github.com/spf13/pflag v1.0.5 // indirect
|
|
)
|
|
|
|
replace github.com/dokku/dokku/plugins/common => ../common
|
|
|
|
replace github.com/dokku/dokku/plugins/config => ../config
|
|
|
|
replace github.com/dokku/dokku/plugins/docker-options => ../docker-options
|