Skip to content

Commit

Permalink
Replace govendor with dep. Update to latest version of all dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
ncabatoff committed Aug 4, 2018
1 parent 5ae43b8 commit 2aab2a0
Show file tree
Hide file tree
Showing 248 changed files with 177 additions and 70,258 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.*.sw?
process-exporter
dist
vendor/
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,23 @@ services:

language: go

env:
- DEP_VERSION="0.5.0"

go:
- 1.10.x

before_install:
- sudo apt-get -qq update
- sudo apt-get install -y rpm
- curl -L -s https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64 -o $GOPATH/bin/dep
- chmod +x $GOPATH/bin/dep

go_import_path: github.com/ncabatoff/process-exporter

install:
- dep ensure

script:
- make style vet test

Expand Down
108 changes: 108 additions & 0 deletions Gopkg.lock

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

58 changes: 58 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Gopkg.toml example
#
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"
#
# [prune]
# non-go = false
# go-tests = true
# unused-packages = true


[[constraint]]
name = "github.com/fatih/structs"
version = "1.0.0"

[[constraint]]
name = "github.com/google/go-cmp"
version = "0.2.0"

[[constraint]]
branch = "master"
name = "github.com/ncabatoff/fakescraper"

[[constraint]]
name = "github.com/prometheus/client_golang"
version = "0.8.0"

[[constraint]]
branch = "master"
name = "github.com/prometheus/procfs"

[[constraint]]
branch = "v1"
name = "gopkg.in/check.v1"

[[constraint]]
name = "gopkg.in/yaml.v2"
version = "2.2.1"

[prune]
go-tests = true
unused-packages = true
4 changes: 2 additions & 2 deletions proc/read.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ type (
// FS implements Source.
FS struct {
procfs.FS
BootTime int64
BootTime uint64
MountPoint string
}
)
Expand Down Expand Up @@ -307,7 +307,7 @@ func (p *proccache) GetStatic() (Static, error) {
if err != nil {
return Static{}, err
}
startTime := time.Unix(p.fs.BootTime, 0).UTC()
startTime := time.Unix(int64(p.fs.BootTime), 0).UTC()
startTime = startTime.Add(time.Second / userHZ * time.Duration(stat.Starttime))
return Static{
Name: stat.Comm,
Expand Down
63 changes: 0 additions & 63 deletions vendor/github.com/beorn7/perks/quantile/bench_test.go

This file was deleted.

Loading

0 comments on commit 2aab2a0

Please sign in to comment.