From 88325eafab7268a5c1c0e072ed85770f7a85a226 Mon Sep 17 00:00:00 2001 From: Volker Schukai <volker.schukai@schukai.com> Date: Sat, 17 Sep 2022 14:45:42 +0200 Subject: [PATCH] Documentation & Makfile --- Makefile | 14 ++++++++++++++ README.md | 4 ++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 93c01c0..0e828da 100644 --- a/Makefile +++ b/Makefile @@ -114,4 +114,18 @@ tag-major-version: next-major-version $(eval PROJECT_VERSION := $(shell cat $(RELEASE_FILE) | jq -r .version)) git tag -a v$(PROJECT_VERSION) -m "Version $(PROJECT_VERSION)" +GO_MOD_FILE := $(SOURCE_PATH)go.mod + +ifeq ($(shell test -e $(GO_MOD_FILE) && echo -n yes),yes) + GO_CURRENT_MODULE := $(shell cat $(GO_MOD_FILE) | head -n1 | cut -d" " -f2) + # go install github.com/google/go-licenses@latest + EXECUTABLES = $(EXECUTABLES:-) go-licenses; +endif + +.PHONY: fetch-licenses +## Fetch licenses for all modules +fetch-licenses: + go-licenses save $(GO_CURRENT_MODULE) --ignore gitlab.schukai.com --force --save_path $(PROJECT_ROOT)licenses/ ; cd - + + diff --git a/README.md b/README.md index 647eaa1..f6d1a89 100644 --- a/README.md +++ b/README.md @@ -136,7 +136,7 @@ func handleRequest(w http.ResponseWriter, r *http.Request) { ``` -## Changelog +## Change Log ### 1.1.0 @@ -148,7 +148,7 @@ func handleRequest(w http.ResponseWriter, r *http.Request) { ## Contributing -Merge requests are welcome. For major changes, please open an issue first to discuss what +Merge requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate. -- GitLab