Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pablobaxter opened this issue Dec 20, 2023 · 1 comment

Comments

@pablobaxter
Copy link
Collaborator

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
Copy link
Collaborator Author

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.

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

No branches or pull requests

1 participant