Skip to content

Commit

Permalink
feat(build): add submodule (#7)
Browse files Browse the repository at this point in the history
* style: add mak to editorconfig

* feat(build): add submodule
  • Loading branch information
alexfalkowski authored Jan 13, 2023
1 parent 536440e commit a5347cf
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
5 changes: 5 additions & 0 deletions build/make/go.mak
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Get git submodule
submodule:
git submodule sync
git submodule update --init

download:
go mod download

Expand Down
5 changes: 5 additions & 0 deletions build/make/service.mak
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Get git submodule
submodule:
git submodule sync
git submodule update --init

# Setup ruby.
ruby-setup:
make -C test setup
Expand Down

0 comments on commit a5347cf

Please sign in to comment.