Minimum requirement: golang version >= 1.18

This commit is contained in:
Holger Obermaier
2022-07-14 13:55:48 +02:00
parent 09b740b82e
commit bae36473f7
5 changed files with 543 additions and 126 deletions

View File

@@ -23,13 +23,6 @@ GOBIN = $(shell which go)
all: $(APP)
$(APP): $(GOSRC)
if [ "$(shell $(GOBIN) version | cut -d' ' -f 3 | cut -d '.' -f1-2)" = "go1.16" ]; then \
echo "1.16"; \
cp go.mod.1.16 go.mod; \
else \
echo "1.17+"; \
cp go.mod.1.17+ go.mod; \
fi
make -C collectors
$(GOBIN) get
$(GOBIN) build -o $(APP) $(GOSRC_APP)