Skip to content

Commit a78eb84

Browse files
committed
add missing cmd file
1 parent d5bde8e commit a78eb84

4 files changed

Lines changed: 18 additions & 5 deletions

File tree

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ GOVERSION:=$(shell \
77
go version | \
88
awk -F'go| ' '{ split($$5, a, /\./); printf ("%04d%04d", a[1], a[2]); exit; }' \
99
)
10-
# also update .github/workflows/citest.yml when changing minumum version
10+
# also update go.mod files when changing minumum version
1111
# find . -name go.mod
12-
MINGOVERSION:=00010023
13-
MINGOVERSIONSTR:=1.23
12+
MINGOVERSION:=00010025
13+
MINGOVERSIONSTR:=1.25
1414
BUILD:=$(shell git rev-parse --short HEAD)
1515
REVISION:=$(shell printf "%04d" $$( git rev-list --all --count))
1616
# see https://github.com/go-modules-by-example/index/blob/master/010_tools/README.md

buildtools/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module tools
22

3-
go 1.25.0
3+
go 1.25.7
44

55
require (
66
github.com/daixiang0/gci v0.13.7

cmd/check_prometheus/main.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package main
2+
3+
import (
4+
"os"
5+
6+
"github.com/consol-monitoring/check_prometheus/pkg/checker"
7+
)
8+
9+
func main() {
10+
return_code := checker.CheckMain(os.Args)
11+
12+
os.Exit(return_code)
13+
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/consol-monitoring/check_prometheus
22

3-
go 1.25
3+
go 1.25.7
44

55
require (
66
github.com/consol-monitoring/check_x v0.0.0-20260108170459-f7c19720a9ad

0 commit comments

Comments
 (0)