From 97ace53bc953e695d427f0c6001bc791f8e7ac23 Mon Sep 17 00:00:00 2001 From: Thomas J Faughnan Jr Date: Thu, 22 Feb 2024 00:30:55 -0500 Subject: [PATCH] Makefile: quiet git describe and rev-parse stderr --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 40011879..6a611c28 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ APP := miniflux DOCKER_IMAGE := miniflux/miniflux -VERSION := $(shell git describe --tags --abbrev=0) -COMMIT := $(shell git rev-parse --short HEAD) +VERSION := $(shell git describe --tags --abbrev=0 2>/dev/null) +COMMIT := $(shell git rev-parse --short HEAD 2>/dev/null) BUILD_DATE := `date +%FT%T%z` LD_FLAGS := "-s -w -X 'miniflux.app/v2/internal/version.Version=$(VERSION)' -X 'miniflux.app/v2/internal/version.Commit=$(COMMIT)' -X 'miniflux.app/v2/internal/version.BuildDate=$(BUILD_DATE)'" PKG_LIST := $(shell go list ./... | grep -v /vendor/)