From bb70dc71135d74ee7cabd03205f18f6b62f122ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9mi=20V=C3=A1nyi?= Date: Tue, 4 Feb 2020 16:46:19 +0100 Subject: [PATCH] Clean up functionbeat/build/vendor folder before collecting deps (#16065) --- x-pack/functionbeat/scripts/mage/update.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/x-pack/functionbeat/scripts/mage/update.go b/x-pack/functionbeat/scripts/mage/update.go index a9dc2766ca79..4a99283d4514 100644 --- a/x-pack/functionbeat/scripts/mage/update.go +++ b/x-pack/functionbeat/scripts/mage/update.go @@ -5,6 +5,7 @@ package mage import ( + "os" "path/filepath" "strings" @@ -55,6 +56,10 @@ func (Update) IncludeFields() error { func (Update) VendorBeats() error { for _, f := range []string{"pubsub", "storage"} { gcpVendorPath := filepath.Join("provider", "gcp", "build", f, "vendor") + err := os.RemoveAll(gcpVendorPath) + if err != nil { + return err + } deps, err := gotool.ListDeps("github.com/elastic/beats/x-pack/functionbeat/provider/gcp/" + f) if err != nil {