From f2cdc8a9ee55151e6af1995066f9c6dea3da2415 Mon Sep 17 00:00:00 2001 From: joeduffy Date: Sun, 11 Feb 2018 20:17:20 -0500 Subject: [PATCH] Use os.Create when expanding plugins --- pkg/workspace/plugins.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/workspace/plugins.go b/pkg/workspace/plugins.go index 99437c36a..fd48f1fb0 100644 --- a/pkg/workspace/plugins.go +++ b/pkg/workspace/plugins.go @@ -86,7 +86,7 @@ func (info PluginInfo) Install(tarball io.ReadCloser) error { } // If so, expand it into the plugin home directory. - dst, err := os.Open(filepath.Join(pluginDir, header.Name)) + dst, err := os.Create(filepath.Join(pluginDir, header.Name)) if err != nil { return err }