From 46989c05f0cedb5c3a44347ec4147a0ebda9dcf0 Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Tue, 19 May 2015 23:22:31 -0700 Subject: [PATCH] lint trusted vs untrusted plugins --- cmd/drone-build/run.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cmd/drone-build/run.go b/cmd/drone-build/run.go index ca179363..23ee0a92 100644 --- a/cmd/drone-build/run.go +++ b/cmd/drone-build/run.go @@ -1,8 +1,6 @@ package main import ( - "encoding/base64" - "fmt" "path/filepath" common "github.com/drone/drone/pkg/types" @@ -47,7 +45,7 @@ func setup(c *Context) error { // inject the matrix parameters into the yaml injected := inject.Inject(string(c.Yaml), c.Build.Environment) - c.Conf, err = parser.ParseSingle(injected, opts) + c.Conf, err = parser.ParseSingle(injected, &opts) if err != nil { return err } @@ -153,7 +151,7 @@ func runSteps(c *Context, steps map[string]*common.Step) (int, error) { conf.Cmd = toCommand(c, step) // append global environment variables - conf.Env = append(conf.Env, c.Env) + conf.Env = append(conf.Env, c.Env...) info, err := run(c.client, conf, step.Pull) if err != nil {