affected-paths icon indicating copy to clipboard operation
affected-paths copied to clipboard

If Git root path and Gradle build path differ, affected-paths does not detect projects

Open pablobaxter opened this issue 2 years ago • 1 comments

The Git working directory is used to determine the paths of the changed files, however, this could differ from the Gradle build path in some cases. Example:

git working directory = /path/to/project
Gradle build path = /path/to/project/foobar/settings.gradle

In this case, the changed files will have the foobar in the path as it is relative to the Git working directory, but Gradle uses the path relative to the build path.

pablobaxter avatar Dec 20 '23 05:12 pablobaxter

This may not be a typical setup anyways, and if the directory and changedFiles properties are set in the CoreOptions class, this becomes a non-issue. It's only an issue if using the internal Git tool to gather the changed files.

pablobaxter avatar Dec 20 '23 17:12 pablobaxter