Skip to content

Commit

Permalink
refactor: remove Makefile and use go generate to compile protobufs
Browse files Browse the repository at this point in the history
  • Loading branch information
flohansen committed Aug 4, 2024
1 parent 3c2419a commit cf32110
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 77 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/server-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
go install google.golang.org/grpc/cmd/[email protected]
- name: Generate files
run: make gen
run: go generate ./...

- name: Go test
run: go test ./... -race
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:
go install google.golang.org/grpc/cmd/[email protected]
- name: Generate files
run: make gen
run: go generate ./...

- name: Login to GHCR
run: |
Expand Down
9 changes: 0 additions & 9 deletions Makefile

This file was deleted.

1 change: 1 addition & 0 deletions internal/server/feature/service.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//go:generate mockgen -source=service.go -destination=mocks/service_mock.go -package=mocks
//go:generate protoc --proto_path=../../../pkg/proto --go_out=../../../pkg/proto --go_opt=paths=source_relative --go-grpc_out=../../../pkg/proto --go-grpc_opt=paths=source_relative feature.proto

package feature

Expand Down
128 changes: 64 additions & 64 deletions pkg/proto/feature.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pkg/proto/feature_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cf32110

Please sign in to comment.