easyp-tech/easyp

deps: proto files in root of repo not works

Closed this issue · 1 comments

func filterOnlyProtoDirs(paths []string) []string {

In the case where the proto file is located in the root
function returns []string{""}

that leads to
cmd.Get: repository.Archive: utils.RunCmd: Command: git; Err: exit status 128; Stderr: fatal: empty string is not a valid pathspec. please use . instead if you meant to match all paths

need nil

But in fact, it is enough to pass *.proto to git archive command.
Personally, I used it this way, and have not come across cases when some other files are needed

Great! Thanks for advise :)