diff --git a/Makefile b/Makefile index 93c01c0d042c2d12a35c45bad00f699935374b74..0e828da2523b942450f24f214d8a2f485676886b 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 647eaa133dcd8a01d4e904947fc4c449bcdcab1f..f6d1a8906fada5dd7bb5676b3bdf089f9cbe5b8f 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.