You've already forked postgres_exporter
mirror of
https://github.com/prometheus-community/postgres_exporter.git
synced 2025-08-08 04:42:07 +03:00
Add cross-compilation Makefile targets and tar-based releases.
Revamp the build system to be more inline with other Prometheus exporters. Notably add Darwin and Windows build targets, and add support for releases using tar files.
This commit is contained in:
9
tools/vendor/github.com/mattn/goveralls/gocover.go
generated
vendored
9
tools/vendor/github.com/mattn/goveralls/gocover.go
generated
vendored
@@ -48,14 +48,13 @@ func mergeProfs(pfss [][]*cover.Profile) []*cover.Profile {
|
||||
ret := make([]*cover.Profile, 0, len(head))
|
||||
for i, profile := range head {
|
||||
for _, ps := range rest {
|
||||
// find profiles
|
||||
if len(ps) == 0 {
|
||||
// no test files
|
||||
continue
|
||||
} else if len(ps) < i+1 {
|
||||
log.Fatal("Profile length is different")
|
||||
}
|
||||
if ps[i].FileName != profile.FileName {
|
||||
log.Fatal("Profile FileName is different")
|
||||
continue
|
||||
} else if ps[i].FileName != profile.FileName {
|
||||
continue
|
||||
}
|
||||
profile.Blocks = mergeProfBlocks(profile.Blocks, ps[i].Blocks)
|
||||
}
|
||||
|
Reference in New Issue
Block a user