Add git-submodule to manage lattice version

This commit is contained in:
Cody Soyland 2021-01-22 14:59:28 -06:00
parent 6c3c460c83
commit 34f728521c
No known key found for this signature in database
GPG key ID: 6F5D2986DCC5DC8A
4 changed files with 12 additions and 3 deletions

1
.gitignore vendored
View file

@ -5,7 +5,6 @@ vendor
.DS_Store
build
*~
lattice
release-pilosa-fsck.*.*.tar.gz
/log.*
/tourna.log.*

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule "lattice"]
path = lattice
url = git@github.com:molecula/lattice.git

View file

@ -155,11 +155,17 @@ install:
install-bench:
go install -tags='$(BUILD_TAGS)' -ldflags $(LDFLAGS) $(FLAGS) ./cmd/pilosa-bench
# Ensure lattice is cloned and the pinned version is checked out
lattice:
git clone git@github.com:molecula/lattice.git
git submodule update --init
# Build the lattice assets
build-lattice: lattice require-yarn
cd lattice && git pull && yarn install && yarn build
cd lattice && yarn install && yarn build
# Upgrade lattice to the latest version
upgrade-lattice: lattice
git submodule update --remote
# `go generate` protocol buffers
generate-protoc: require-protoc require-protoc-gen-gofast

1
lattice Submodule

@ -0,0 +1 @@
Subproject commit 36f453c1ea3bf86c546a8ad4a88f2a926724d683