Skip to content

skip rewriting output files if unchanged (#626) - #1

Merged
bradleygore merged 1 commit into
bradleygore:mainfrom
golang:main
Oct 14, 2022
Merged

bradleygore merged 1 commit into
bradleygore:mainfrom
golang:main

Conversation

@bradleygore

Copy link
Copy Markdown
Owner

When running mockgen with the output option this checks if the existing file content already exists and skips writing if there is nothing to change.

This will help reduce i/o when changing lots of files, but also reduce the re-indexing triggering in IDEs.

Solves golang#604

When running mockgen with the output option this checks if the existing file content already exists and skips writing if there is nothing to change.

This will help reduce i/o when changing lots of files, but also reduce the re-indexing triggering in IDEs.

Solves #604
@bradleygore
bradleygore merged commit 8210cbd into bradleygore:main Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants