Skip to content

Commit

Permalink
Merge pull request #56 from Layr-Labs/sm-sidecarApis
Browse files Browse the repository at this point in the history
Move protos to sidecar-apis module
  • Loading branch information
seanmcgary authored Oct 8, 2024
2 parents 8294c9b + c2e0814 commit 22ab610
Show file tree
Hide file tree
Showing 14 changed files with 9 additions and 2,899 deletions.
28 changes: 2 additions & 26 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: deps proto
.PHONY: deps

PROJECT_ROOT = $(shell pwd)
CGO_CFLAGS = "-I$(PROJECT_ROOT)/sqlite-extensions"
Expand All @@ -8,44 +8,20 @@ CGO_ENABLED = 1
GO=$(shell which go)
ALL_FLAGS=CGO_CFLAGS=$(CGO_CFLAGS) CGO_LDFLAGS=$(CGO_LDFLAGS) PYTHONPATH=$(PYTHONPATH) CGO_ENABLED=$(CGO_ENABLED)

PROTO_OPTS=--proto_path=protos --go_out=paths=source_relative:protos

deps/dev:
${GO} install github.com/golangci/golangci-lint/cmd/[email protected]
${GO} install honnef.co/go/tools/cmd/staticcheck@latest
${GO} install github.com/google/yamlfmt/cmd/yamlfmt@latest

deps/go:
${GO} install google.golang.org/protobuf/cmd/[email protected]
${GO} install google.golang.org/grpc/cmd/[email protected]
${GO} get \
github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway \
github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2 \
google.golang.org/protobuf/cmd/protoc-gen-go \
google.golang.org/grpc/cmd/protoc-gen-go-grpc
${GO} install \
github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway \
github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2 \
google.golang.org/protobuf/cmd/protoc-gen-go \
google.golang.org/grpc/cmd/protoc-gen-go-grpc
${GO} mod tidy


deps-buf:
GOROOT=$(go env GOROOT)
BIN="${GOROOT}/bin" VERSION="1.32.2" && \
curl -sSL "https://github.com/bufbuild/buf/releases/download/v${VERSION}/buf-$(uname -s)-$(uname -m)" -o "${BIN}/buf" && \
chmod +x "${BIN}/buf"

deps-system:
./scripts/installDeps.sh

deps: deps-system deps-buf deps/go deps/dev

deps: deps-system deps/go deps/dev

# Build targets
proto:
buf generate protos

.PHONY: clean
clean:
Expand Down
15 changes: 0 additions & 15 deletions buf.gen.yaml

This file was deleted.

8 changes: 0 additions & 8 deletions buf.lock

This file was deleted.

Loading

0 comments on commit 22ab610

Please sign in to comment.