diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2020-05-21 12:07:46 -0400 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2020-05-21 12:09:01 -0400 |
commit | 0d0565f55ee3399f5c2c4e4b73acb732b424f3db (patch) | |
tree | a7345295b565e93eda9e353479e1334eb9bdcc05 /cmd | |
parent | a852afab2f37026fa8a45d115c61cd77fb3e7ef1 (diff) | |
download | podman-0d0565f55ee3399f5c2c4e4b73acb732b424f3db.tar.gz podman-0d0565f55ee3399f5c2c4e4b73acb732b424f3db.tar.bz2 podman-0d0565f55ee3399f5c2c4e4b73acb732b424f3db.zip |
Remove github.com/libpod/libpod from cmd/pkg/podman
By moving a couple of variables from libpod/libpod to libpod/libpod/define
I am able shrink the podman-remote-* executables by another megabyte.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/podman/networks/create.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/podman/networks/create.go b/cmd/podman/networks/create.go index 10973e6bf..5d28c7140 100644 --- a/cmd/podman/networks/create.go +++ b/cmd/podman/networks/create.go @@ -5,7 +5,7 @@ import ( "net" "github.com/containers/libpod/cmd/podman/registry" - "github.com/containers/libpod/libpod" + "github.com/containers/libpod/libpod/define" "github.com/containers/libpod/pkg/domain/entities" "github.com/containers/libpod/pkg/network" "github.com/pkg/errors" @@ -65,8 +65,8 @@ func networkCreate(cmd *cobra.Command, args []string) error { if len(args) > 1 { return errors.Errorf("only one network can be created at a time") } - if len(args) > 0 && !libpod.NameRegex.MatchString(args[0]) { - return libpod.RegexError + if len(args) > 0 && !define.NameRegex.MatchString(args[0]) { + return define.RegexError } if len(args) > 0 { |