Closed ruben-garciapariente closed 2 years ago
Thanks for reporting @ruben-garciapariente we will look into it
@ruben-garciapariente this is fixed in the gradle and maven plugins and will go out in the next release of each of those, likely within the next week or so. gradle plugin fix: https://github.com/openrewrite/rewrite-gradle-plugin/commit/8110f7d875a33a8bd2b9f2b86f7f12273c7eb61b maven plugin fix: https://github.com/openrewrite/rewrite-maven-plugin/commit/b8106e2c92c31cd5d59eac4511327e9ce5be2dea
Thanks for reporting this issue!
Hello,
The incident I am going to tell you about is really funny. To prove this case I have a very simple project https://github.com/ruben-garciapariente/test-openwrite/tree/yaml-files-unix In the project there is only one pom.xml file and one application.xml file.
application.yml
pom.xml
If I run the command mvn rewrite:dryRun on a linux using as a base folder "/test" everything works correctly, the recipe applies
But if I run it on the /target folder on a linux (I think it is enough that there is a target folder in the path for it to fail), the recipe does not apply.
I have tested on a windows system on c:\target and it works correctly.
Thanks & regards