diff --git a/main.go b/main.go index 8fadcfa8f8d7..baeefc107549 100644 --- a/main.go +++ b/main.go @@ -12,11 +12,13 @@ import ( // These packages have init() funcs which check os.Args and drop directly // into their command logic. This is because they are run as separate // processes along side of a task. By early importing them we can avoid - // additional code being imported and thus reserving memory + // additional code being imported and thus reserving memory. _ "github.com/hashicorp/nomad/client/logmon" - "github.com/hashicorp/nomad/command" _ "github.com/hashicorp/nomad/drivers/docker/docklog" _ "github.com/hashicorp/nomad/drivers/shared/executor" + + // Don't move any other code imports above the import block above! + "github.com/hashicorp/nomad/command" "github.com/hashicorp/nomad/version" "github.com/mitchellh/cli" "github.com/sean-/seed"