Skip to content

Commit c8394bd

Browse files
committed
Explicitly specify protoc plugin in Plugin test target
This change explicitly specifies the swift grpc ptotoc plugin in the `Plugin` directory, so users without `.` in the path can run the test target. Also add some build artifacts from the Plugin directory to .gitignore.
1 parent 317482f commit c8394bd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ project.xcworkspace
33
xcuserdata
44
.build
55
third_party/**
6+
Plugin/Packages/**
7+
Plugin/protoc-*

Plugin/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ build: clear
99
cp .build/debug/protoc-gen-swift .
1010

1111
test: build
12-
protoc ../Examples/Echo/echo.proto --proto_path=../Examples/Echo --swiftgrpc_out=.
12+
protoc ../Examples/Echo/echo.proto --proto_path=../Examples/Echo --plugin=./protoc-gen-swiftgrpc --swiftgrpc_out=.
1313
diff echo.client.pb.swift ../Examples/Echo/Generated/echo.client.pb.swift
1414
diff echo.server.pb.swift ../Examples/Echo/Generated/echo.server.pb.swift
1515

0 commit comments

Comments
 (0)