diff --git a/nsinit/config.go b/nsinit/config.go index 5beb04ac..e1f28fcc 100644 --- a/nsinit/config.go +++ b/nsinit/config.go @@ -1,4 +1,4 @@ -package nsinit +package main import ( "encoding/json" diff --git a/nsinit/exec.go b/nsinit/exec.go index 4a38a61b..f48ca17b 100644 --- a/nsinit/exec.go +++ b/nsinit/exec.go @@ -1,4 +1,4 @@ -package nsinit +package main import ( "fmt" diff --git a/nsinit/init.go b/nsinit/init.go index e7a96632..b3751964 100644 --- a/nsinit/init.go +++ b/nsinit/init.go @@ -1,4 +1,4 @@ -package nsinit +package main import ( "log" diff --git a/nsinit/cli.go b/nsinit/main.go similarity index 96% rename from nsinit/cli.go rename to nsinit/main.go index c8d15331..25a80b22 100644 --- a/nsinit/cli.go +++ b/nsinit/main.go @@ -1,4 +1,4 @@ -package nsinit +package main import ( "log" @@ -26,7 +26,7 @@ func preload(context *cli.Context) error { return nil } -func NsInit() { +func main() { // we need to check our argv 0 for any registred functions to run instead of the // normal cli code path diff --git a/nsinit/nsenter.go b/nsinit/nsenter.go index fabd65e9..954de992 100644 --- a/nsinit/nsenter.go +++ b/nsinit/nsenter.go @@ -1,4 +1,4 @@ -package nsinit +package main import ( "log" diff --git a/nsinit/pause.go b/nsinit/pause.go index 492a0e85..6744539c 100644 --- a/nsinit/pause.go +++ b/nsinit/pause.go @@ -1,4 +1,4 @@ -package nsinit +package main import ( "log" diff --git a/nsinit/stats.go b/nsinit/stats.go index 3e59305b..331d27f2 100644 --- a/nsinit/stats.go +++ b/nsinit/stats.go @@ -1,4 +1,4 @@ -package nsinit +package main import ( "encoding/json" diff --git a/nsinit/utils.go b/nsinit/utils.go index 8525ba9a..44194d88 100644 --- a/nsinit/utils.go +++ b/nsinit/utils.go @@ -1,4 +1,4 @@ -package nsinit +package main import ( "encoding/json"