-
When I run open-rewrite to migrate source files, and if a particular source file has read-only permissions (at the OS level), then I see that the mvn rewrite:run command fails with the following error: [WARNING] Estimate time saved: 1h 50m Please consider providing an option to warn the users about the read-only files when the dryRun feature is used Currently, I don't see any warnings/failures when read-only files are encountered when dryRun feature is used. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @gnsuryan ; I don't quite see a reason to warn on read only files for What are your thoughts here? Why would it be an issue for |
Beta Was this translation helpful? Give feedback.
Thanks for the additional context; my expectation would be that you run
rewrite:dryRun
, and thengit apply
the .patch file it produces; That way you'll get notified about any write issues at that stage, and can alert the users as needed.Others might have a different workflow, for instance running a dryRun on a CI environment where it's perfectly fine to have read only source files. As such I don't think it makes sense for us to report a warning in those cases, especially with that eye towards Maven 4.
I will however monitor further replies and comments here such that if more demand for this pops up in the future we can reevaluate then. Thanks!