Skip to content

Commit

Permalink
Clean up functionbeat/build/vendor folder before collecting deps (#16065
Browse files Browse the repository at this point in the history
)
  • Loading branch information
kvch authored Feb 4, 2020
1 parent 2254589 commit bb70dc7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions x-pack/functionbeat/scripts/mage/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
package mage

import (
"os"
"path/filepath"
"strings"

Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit bb70dc7

Please sign in to comment.