From ef7b6d613e00fccf142e90dede52631834782841 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 22 Sep 2013 09:39:27 -0700 Subject: [PATCH] packer/plugin: log git commit plugin was built against --- packer/plugin/plugin.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packer/plugin/plugin.go b/packer/plugin/plugin.go index f9fca8cdd..9afba0285 100644 --- a/packer/plugin/plugin.go +++ b/packer/plugin/plugin.go @@ -33,6 +33,8 @@ const MagicCookieValue = "d602bf8f470bc67ca7faa0386276bbdd4330efaf76d1a219cb4d69 // This serves a single RPC connection on the given RPC server on // a random port. func serve(server *rpc.Server) (err error) { + log.Printf("Plugin build against Packer '%s'", packer.GitCommit) + if os.Getenv(MagicCookieKey) != MagicCookieValue { return errors.New("Please do not execute plugins directly. Packer will execute these for you.") }