Skip to content

Commit

Permalink
Update dependencies (#1905)
Browse files Browse the repository at this point in the history
* Add .bat to cleanup script
* Replace labix.org/v2 through gopkg.in/mgo.v2 as it allows setting a version number
* A more versions numbers to dependencies and update them
* Fix imports which broke metricbeat crosscompile
  • Loading branch information
ruflin authored and tsg committed Jun 24, 2016
1 parent 65d48cc commit dedc109
Show file tree
Hide file tree
Showing 57 changed files with 3,889 additions and 728 deletions.
16 changes: 14 additions & 2 deletions glide.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,42 @@ import:
- package: github.com/garyburd/redigo
version: v1.0.0
- package: gopkg.in/yaml.v2
version: a83829b6f1293c91addabc89d0571c246397bbf4
- package: github.com/nranchev/go-libGeoIP
version: c78e8bd2dd3599feb21fd30886043979e82fe948
- package: golang.org/x/sys
version: 62bee037599929a6e9146f29d10dd5208c43507d
subpackages:
- /windows/svc
- package: github.com/stretchr/testify
version: v1.1.3
subpackages:
- /assert
- package: github.com/davecgh/go-spew
version: 5215b55f46b2b919f50a1df0eaa5886afe4e3b3d
subpackages:
- /spew
- package: github.com/stretchr/objx
version: 1a9d0bb9f541897e62256577b352fdbc1fb4fd94
- package: github.com/pmezard/go-difflib
version: 792786c7400a136282c1664665ae0a8db921c6c2
subpackages:
- /difflib
- package: github.com/elastic/gosigar
version: f42b670971458b6dd33dedff713c0de3c020fabb
- package: github.com/samuel/go-parser
version: ca8abbf65d0e61dedf061f98bd3850f250e27539
- package: github.com/samuel/go-thrift
version: 2187045faa54fce7f5028706ffeb2f2fc342aa7e
# Alternative name? gopkg.in/mgo.v2 https://github.com/Masterminds/glide/issues/221#issuecomment-179817757
- package: labix.org/v2/mgo
# This is the same as labix.org/v2/mgo. See https://github.com/Masterminds/glide/issues/221#issuecomment-179817757
- package: gopkg.in/mgo.v2
version: 29cc868a5ca65f401ff318143f9408d02f4799cc
- package: github.com/tsg/gopacket
version: 8c16bb8f00ff46af06942df2a8767ba1cf639bdc
- package: github.com/joeshaw/multierror
version: 69b34d4ec901851247ae7e77d33909caf9df99ed
- package: github.com/andrewkroh/sys
version: 287798fe3e430efeb9318b95ff52353aaa2b59b1
subpackages:
- /windows/svc/eventlog
- package: golang.org/x/net
Expand Down
1 change: 0 additions & 1 deletion metricbeat/include/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
_ "github.com/elastic/beats/metricbeat/module/redis/info"
_ "github.com/elastic/beats/metricbeat/module/redis/keyspace"
_ "github.com/elastic/beats/metricbeat/module/system"
_ "github.com/elastic/beats/metricbeat/module/system/common"
_ "github.com/elastic/beats/metricbeat/module/system/core"
_ "github.com/elastic/beats/metricbeat/module/system/cpu"
_ "github.com/elastic/beats/metricbeat/module/system/diskio"
Expand Down
4 changes: 2 additions & 2 deletions metricbeat/module/mongodb/status/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"github.com/elastic/beats/metricbeat/mb"

"github.com/pkg/errors"
"labix.org/v2/mgo"
"labix.org/v2/mgo/bson"
"gopkg.in/mgo.v2"
"gopkg.in/mgo.v2/bson"
)

/*
Expand Down
2 changes: 1 addition & 1 deletion metricbeat/scripts/generate_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def generate(go_beat_path):

# Fetch all metricsets
for metricset in os.listdir(base_dir + "/" + module):
if os.path.isfile(base_dir + "/" + module + "/" + metricset) or metricset == "_meta" or metricset == "vendor":
if os.path.isfile(base_dir + "/" + module + "/" + metricset) or metricset == "_meta" or metricset == "vendor" or metricset == "common":
continue

list_file += ' _ "' + go_beat_path + '/module/' + module + '/' + metricset + '"\n'
Expand Down
2 changes: 1 addition & 1 deletion packetbeat/protos/mongodb/mongodb_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/elastic/beats/libbeat/common"
"github.com/elastic/beats/libbeat/logp"

"labix.org/v2/mgo/bson"
"gopkg.in/mgo.v2/bson"
)

func mongodbMessageParser(s *stream) (bool, bool) {
Expand Down
3 changes: 3 additions & 0 deletions scripts/clean_vendor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,6 @@ find $DIR_LIST -type f -name "*.txt" -a ! \( -iname "LICENSE.*" -o -iname "CHANG

## Removing all *.cfg files
find $DIR_LIST -type f -name "*.cfg" -exec rm -r {} \;

## Removing all *.bat files
find $DIR_LIST -type f -name "*.bat" -exec rm -r {} \;
5 changes: 0 additions & 5 deletions vendor/github.com/go-ole/go-ole/build/compile-go.bat

This file was deleted.

8 changes: 0 additions & 8 deletions vendor/github.com/go-ole/go-ole/build/register-assembly.bat

This file was deleted.

4 changes: 2 additions & 2 deletions vendor/github.com/go-ole/go-ole/safearray_windows.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions vendor/github.com/shirou/gopsutil/host/host.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions vendor/github.com/shirou/gopsutil/net/net.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions vendor/gopkg.in/mgo.v2/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

65 changes: 60 additions & 5 deletions vendor/labix.org/v2/mgo/auth.go → vendor/gopkg.in/mgo.v2/auth.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
Loading

0 comments on commit dedc109

Please sign in to comment.