mirror of
https://github.com/vacp2p/mvds.git
synced 2026-01-07 19:23:55 -05:00
* protobuf * do not send ack when not required * remove from state if no ack required * different send modes * fix * updated * retransmit fix * updated * fixed * renamed to ephemeral * repeated * gen * resolution * cleanup * rough dependency code * todo * removed * only stores if ephemeral * started implementing the algo * simplified * updated * we never store ephemeral messages so we did not need * adds parents * new schema * tx to insert * err * removed old * fixed * changed log * test persistence of parents * removed * rename * ignoring * Update store/messagestore_sqlite.go Co-Authored-By: Adam Babik <adam@status.im> * Update node/node.go Co-Authored-By: Adam Babik <adam@status.im> * Update node/node.go Co-Authored-By: Adam Babik <adam@status.im> * Update node/node.go Co-Authored-By: Adam Babik <adam@status.im> * more fixes * Update store/messagestore_sqlite.go Co-Authored-By: Adam Babik <adam@status.im> * more fixes * using refs * Update node/node.go Co-Authored-By: Adam Babik <adam@status.im> * finished * Update store/messagestore_sqlite.go Co-Authored-By: Adam Babik <adam@status.im> * Update 1572372377_initial_schema.down.sql * desc + refactor * started refactoring resolution * Update README.md * rewrote resolve * mutex * todo * fixes * sql impl * added test * log * updates * updated * little bug * fix * added test * first changes from @adambabik * moved * fixed test, started eventual ones * fixed eventually test * mock install * consistent test * mock * fix lint * Update dependency/tracker_sqlite.go Co-Authored-By: Adam Babik <adam@status.im> * fix
59 lines
1.0 KiB
Makefile
59 lines
1.0 KiB
Makefile
SHELL := /bin/bash
|
|
|
|
GO111MODULE = on
|
|
|
|
build:
|
|
go build
|
|
.PHONY: build
|
|
|
|
test:
|
|
go test -v ./...
|
|
.PHONY: test
|
|
|
|
protobuf:
|
|
protoc --go_out=. ./protobuf/*.proto
|
|
.PHONY: protobuf
|
|
|
|
lint:
|
|
golangci-lint run -v
|
|
.PHONY: lint
|
|
|
|
install-linter:
|
|
# install linter
|
|
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(shell go env GOPATH)/bin v1.17.1
|
|
.PHONY: install-linter
|
|
|
|
mock-install:
|
|
go get -u github.com/golang/mock/mockgen
|
|
go get -u github.com/golang/mock
|
|
.PHONY: mock-install
|
|
|
|
mock:
|
|
mockgen -package=internal -destination=node/internal/syncstate_mock.go -source=state/state.go
|
|
.PHONY: mock
|
|
|
|
vendor:
|
|
go mod tidy
|
|
go mod vendor
|
|
modvendor -copy="**/*.c **/*.h" -v
|
|
.PHONY: vendor
|
|
|
|
generate:
|
|
go generate ./...
|
|
.PHONY: generate
|
|
|
|
create-migration:
|
|
@if [ -z "$$DIR" ]; then \
|
|
echo 'missing DIR var'; \
|
|
exit 1; \
|
|
fi
|
|
|
|
@if [ -z "$$NAME" ]; then \
|
|
echo 'missing NAME var'; \
|
|
exit 1; \
|
|
fi
|
|
|
|
mkdir -p $(DIR)
|
|
touch $(DIR)/`date +"%s"`_$(NAME).down.sql ./$(DIR)/`date +"%s"`_$(NAME).up.sql
|
|
.PHONY: create-migration
|