Flag -write_generate_directive
produces wrong paths in the directive
#135
Labels
bug
Something isn't working
Actual behavior
Flag
-write_generate_directive
adds thego:generate
directive, ignoring the future working directory. That leads to a failure ofgo generate
.Expected behavior
go:generate
directive should be changed to respect that the current working directory will be different from the original execution.To Reproduce
//go:generate mockgen -write_generate_directive -source file.go -destination mocks/mock.go
To fix
//go:generate mockgen -write_generate_directive -source ../file.go -destination mock.go
The text was updated successfully, but these errors were encountered: