gojuno / minimock

Powerful mock generation tool for Go programming language
MIT License
577 stars 38 forks source link

-o breaks on empty directories #28

Closed deadok22 closed 5 years ago

deadok22 commented 5 years ago

Specifying an empty output directory for -o option results in minimock failing.

Steps to reproduce:

$ mkdir mocks
$ go run github.com/gojuno/minimock/cmd/minimock -g -i io.Reader -o mocks/ -s _mock.go
minimock: failed to load destination package: ./mocks: -: unknown import path "your/module/pkg/mocks": cannot find module providing package your/module/pkg/mocks
exit status 1
hexdigest commented 5 years ago

@deadok22 this should be fixed in 2.1.4, please check

deadok22 commented 5 years ago

Awesome! Thank you @hexdigest!