Skip to content

Commit

Permalink
Add comment and fix order
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdan D committed Dec 7, 2022
1 parent 18b54b3 commit aa1f0ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/outputter.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ func (p *FileOutputStreamProvider) GetWriter(ctx context.Context, iface *Interfa
filepath.Join(filepath.Dir(iface.FileName), p.filename(caseName)),
absOriginalDir)

relativePath = strings.Replace(relativePath, "/internal/", "/_internal/", -1)
// as it's not possible to import from internal path, we have to replace it in mocks when KepTree is used
relativePath = strings.Replace(relativePath, "/internal/", "/internal_/", -1)

path = filepath.Join(p.BaseDir, relativePath)
if err := os.MkdirAll(filepath.Dir(path), 0755); err != nil {
Expand Down

0 comments on commit aa1f0ff

Please sign in to comment.