Skip to content

Commit

Permalink
Merge pull request #1084 from prometheus/beorn7/release
Browse files Browse the repository at this point in the history
Merge commit tagged as v1.12.2 into the release branch
  • Loading branch information
kakkoyun committed Jul 12, 2022
2 parents 5da7b61 + f358b48 commit 082c0a2
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions prometheus/gen_go_collector_metrics_set.go
Expand Up @@ -38,15 +38,8 @@ func main() {
log.Fatal("requires Go version (e.g. go1.17) as an argument")
}
toolVersion := runtime.Version()
<<<<<<< HEAD
if majorVersion := toolVersion[:strings.LastIndexByte(toolVersion, '.')]; majorVersion != os.Args[1] {
log.Fatalf("using Go version %q but expected Go version %q", majorVersion, os.Args[1])
=======
mtv := majorVersion(toolVersion)
mv := majorVersion(os.Args[1])
if mtv != mv {
log.Fatalf("using Go version %q but expected Go version %q", mtv, mv)
>>>>>>> f251146 (prometheus: Fix convention violating names for generated collector metrics (#1048))
}
version, err := parseVersion(mv)
if err != nil {
Expand Down

0 comments on commit 082c0a2

Please sign in to comment.