diff --git a/refactor/rename/rename.go b/refactor/rename/rename.go index b026e78772..e952b98417 100644 --- a/refactor/rename/rename.go +++ b/refactor/rename/rename.go @@ -494,7 +494,7 @@ func (r *renamer) update() error { } } } - if len(generatedFileNames) > 0 { + if !Force && len(generatedFileNames) > 0 { return fmt.Errorf("refusing to modify generated file%s containing DO NOT EDIT marker: %v", plural(len(generatedFileNames)), generatedFileNames) }