Closed arne-cl closed 6 years ago
The issue seems to be the dash in repo name. If I use an underscore, it works:
$ lile new arne-cl/grpc_test
Creating project in /home/arne/go/src/github.com/arne-cl/grpc_test
Is this OK? [y]es/[n]o
y
.
├── server
│ ├── server.go
│ └── server_test.go
├── subscribers
│ └── subscribers.go
├── grpc_test
│ ├── cmd
│ │ ├── root.go
│ │ └── up.go
│ └── main.go
├── grpc_test.proto
├── client.go
├── Makefile
├── Dockerfile
└── .gitignore
Hi @arne-cl, sure.
The issue that that go packages can't have -
in them, we could either warn that this package name won't work, or we could generate an underscored name?
I feel we should probably warn
Hi @arbarlow,
that is a bit confusing, as lile new
works with git repository names not go packages. (We have lots of golang repos at work with dashes in the repo names but underscores in the code base.)
Best regards, Arne
Hi @arne-cl, I've just released v2, which should help with this! Please give it a go and see if it generates what you'd expect it to generate 😄
hi @arne-cl, I haven't heard anything for a while so I'm closing this issue for now. Do let me know if it's still a problem!
I tried to generate a new service, but got this error:
Interestingly, if I use your example repo name, it works: