Closed jinq0123 closed 6 years ago
Hi, i think you might need to run make proto
first before running your make
[jinqing@localhost src]$ pwd
/home/jinqing/go/src
[jinqing@localhost src]$ go get -u github.com/lileio/lile/...
[jinqing@localhost src]$ lile new lileio/users
Creating project in /home/jinqing/go/src/github.com/lileio/users
Is this OK? [y]es/[n]o
y
.
├── server
│ ├── server.go
│ └── server_test.go
├── subscribers
│ └── subscribers.go
├── users
│ ├── cmd
│ │ ├── root.go
│ │ └── up.go
│ └── main.go
├── users.proto
├── client.go
├── Makefile
├── Dockerfile
└── .gitignore
[jinqing@localhost src]$ cd /home/jinqing/go/src/github.com/lileio/users
[jinqing@localhost users]$ ls
client.go Dockerfile Makefile server subscribers users users.proto
[jinqing@localhost users]$ make build
go get github.com/golang/protobuf/protoc-gen-go
protoc -I . users.proto --lile-server_out=. --go_out=plugins=grpc:/home/jinqing/go/src
2018/08/07 03:35:40 [Creating] server/get.go
2018/08/07 03:35:40 [Creating test] server/get_test.go
go build -o build/lileio/users lileio/users/main.go
stat lileio/users/main.go: no such file or directory
make: *** [build] Error 1
[jinqing@localhost users]$ ls
client.go Makefile subscribers users.pb.go
Dockerfile server users users.proto
[jinqing@localhost users]$
I"m sorry, I'm still no sure what's going on, but trying the new Go modules support will probably help