From a5347cf25a5467325333d08fb545bf9f3f179c3f Mon Sep 17 00:00:00 2001 From: Alejandro Falkowski Date: Fri, 13 Jan 2023 08:45:34 +0100 Subject: [PATCH] feat(build): add submodule (#7) * style: add mak to editorconfig * feat(build): add submodule --- .editorconfig | 4 ++++ README.md | 2 ++ build/make/go.mak | 5 +++++ build/make/service.mak | 5 +++++ 4 files changed, 16 insertions(+) diff --git a/.editorconfig b/.editorconfig index 3fef092..17eab55 100644 --- a/.editorconfig +++ b/.editorconfig @@ -13,6 +13,10 @@ indent_size = 2 indent_style = tab indent_size = 8 +[*.mak] +indent_style = tab +indent_size = 8 + [*.go] indent_style = tab indent_size = 4 diff --git a/README.md b/README.md index 636da86..b8d83c9 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,8 @@ We will break these executables into higher level categories. These will be as f Best to use this repository as a [Submodule](https://git-scm.com/book/en/v2/Git-Tools-Submodules). +For convenience we have added a target called `submodule` under `build/make` + ### Circle CI As Circle CI does not seem to support submodules, so we need to do some [work](https://circleci.com/docs/configuration-reference/#checkout). diff --git a/build/make/go.mak b/build/make/go.mak index 23ad2bb..1e81e1a 100644 --- a/build/make/go.mak +++ b/build/make/go.mak @@ -1,3 +1,8 @@ +# Get git submodule +submodule: + git submodule sync + git submodule update --init + download: go mod download diff --git a/build/make/service.mak b/build/make/service.mak index b7a4def..089dd62 100644 --- a/build/make/service.mak +++ b/build/make/service.mak @@ -1,3 +1,8 @@ +# Get git submodule +submodule: + git submodule sync + git submodule update --init + # Setup ruby. ruby-setup: make -C test setup