Skip to content

Commit

Permalink
restore gen/up
Browse files Browse the repository at this point in the history
  • Loading branch information
insipx committed May 20, 2024
1 parent d6a5aee commit d3a29ff
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions dev/generate
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go generate ./...

mockgen -package api github.com/xmtp/xmtp-node-go/pkg/proto/mls/api/v1 MlsApi_SubscribeGroupMessagesServer,MlsApi_SubscribeWelcomeMessagesServer > pkg/mls/api/v1/mock.gen.go
rm -rf pkg/proto/**/*.pb.go pkg/proto/**/*.pb.gw.go pkg/proto/**/*.swagger.json
if ! buf generate https://github.com/xmtp/proto.git#branch=insipx/validation-cred,subdir=proto; then
if ! buf generate https://github.com/xmtp/proto.git#branch=main,subdir=proto; then
echo "Failed to generate protobuf definitions"
exit 1
fi
fi
16 changes: 8 additions & 8 deletions dev/up
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ set -e

go mod tidy

#if ! which chronic &>/dev/null; then brew install moreutils; fi
#if ! which golangci-lint &>/dev/null; then brew install golangci-lint; fi
#if ! which shellcheck &>/dev/null; then brew install shellcheck; fi
#if ! which protoc &>/dev/null; then brew install protobuf; fi
#if ! which protoc-gen-go &>/dev/null; then go install google.golang.org/protobuf/cmd/protoc-gen-go@latest; fi
#if ! which mockgen &>/dev/null || [ `mockgen --version` != "v0.4.0" ]; then go install go.uber.org/mock/[email protected]; fi
#if ! which protolint &>/dev/null; then go install github.com/yoheimuta/protolint/cmd/protolint@latest; fi
if ! which chronic &>/dev/null; then brew install moreutils; fi
if ! which golangci-lint &>/dev/null; then brew install golangci-lint; fi
if ! which shellcheck &>/dev/null; then brew install shellcheck; fi
if ! which protoc &>/dev/null; then brew install protobuf; fi
if ! which protoc-gen-go &>/dev/null; then go install google.golang.org/protobuf/cmd/protoc-gen-go@latest; fi
if ! which mockgen &>/dev/null || [ `mockgen --version` != "v0.4.0" ]; then go install go.uber.org/mock/[email protected]; fi
if ! which protolint &>/dev/null; then go install github.com/yoheimuta/protolint/cmd/protolint@latest; fi

# dev/generate
dev/generate
dev/docker/up
dev/e2e/docker/up

0 comments on commit d3a29ff

Please sign in to comment.