浏览代码

Blank space in $PATH leads to file not found error

Signed-off-by: Anton Evers <evers@adobe.com>
Anton Evers 2 年之前
父节点
当前提交
987603173f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Makefile

+ 1 - 1
Makefile

@@ -18,7 +18,7 @@ ${GOBIN}/protoc-gen-gogo${EXE}:
 
 ifneq ($(OS),Windows_NT)
 internal/pb/pb.pb.go: internal/pb/pb.proto ${GOBIN}/protoc-gen-gogo
-	PATH=${PATH}:${GOBIN} protoc --gogo_out=internal/pb --proto_path=internal/pb internal/pb/pb.proto
+	PATH="${PATH}:${GOBIN}" protoc --gogo_out=internal/pb --proto_path=internal/pb internal/pb/pb.proto
 else
 internal/pb/pb.pb.go: internal/pb/pb.proto ${GOBIN}/protoc-gen-gogo.exe
 	export PATH="${PATH};${GOBIN}" && \