Skip to content

Commit 63f5447

Browse files
committed
allow task to get protoc bin name from env
1 parent e8b13d9 commit 63f5447

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: Taskfile.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ tasks:
44
protoc:
55
desc: Compile protobuf definitions
66
cmds:
7-
- protoc --proto_path=rpc --go_out=plugins=grpc,paths=source_relative:rpc ./rpc/commands/*.proto
7+
- '{{ default "protoc" .PROTOC_BINARY }} --proto_path=rpc --go_out=plugins=grpc,paths=source_relative:rpc ./rpc/commands/*.proto'
88

99
build:
1010
desc: Build the project

Diff for: appveyor.yml

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ skip_branch_with_pr: true
1010
environment:
1111
GOPATH: c:\gopath
1212
PROTOC_PATH: c:\protoc
13+
PROTOC_BINARY: protoc.exe
1314
# add protoc, gopath and override default Python 2.7
1415
PATH: $(PROTOC_PATH)\bin;$(GOPATH)\bin;C:\Python37;C:\Python37\Scripts;$(PATH)
1516

0 commit comments

Comments
 (0)