feat(config): add automatic backup before modifying config file (#7)

This commit is contained in:
Adem Baccara
2025-08-31 10:01:37 +01:00
committed by GitHub
parent 6a963974df
commit b41eeecbf7
7 changed files with 105 additions and 50 deletions
+1 -2
View File
@@ -20,7 +20,6 @@ SHELL = /usr/bin/env bash -o pipefail
# Project variables
PROJECT_NAME ?= $(shell basename $(CURDIR))
VERSION ?= v0.1.0
BUILD_TIME ?= $(shell date -u '+%Y-%m-%d_%H:%M:%S')
GIT_COMMIT ?= $(shell git rev-parse --short HEAD 2>/dev/null || echo "unknown")
# Build variables
@@ -30,7 +29,7 @@ CMD_DIR ?= ./cmd
PKG_LIST := $(shell go list ./...)
# LDFLAGS for version information
LDFLAGS = -ldflags "-X main.version=$(VERSION) -X main.buildTime=$(BUILD_TIME) -X main.gitCommit=$(GIT_COMMIT)"
LDFLAGS = -ldflags "-X main.version=$(VERSION) -X main.gitCommit=$(GIT_COMMIT)"
##@ Dependencies