-
Notifications
You must be signed in to change notification settings - Fork 5
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
The plugin always detekt all modules as changes #8
Comments
Hi 👋 Your setup looks fine Not sure if this is your case, but, normally when you're doing the plugin setup for the first time, it will trigger the task for all modules since you're modifying the root You can have better logs to debug showing which exactly files changes, from which modules, and the impacted modules by adding If that's not your problem, could you post a quick overview of your how project is setup and what a simple |
Also, I took a look at
Trying to run |
I've tried to disable Detekt at all and commit changes. Still all modules are changed ( |
Yes, run your command with |
The reason of changes is
|
The plugin will use git to extract changes. Maybe you have a local outdated branch without this change on Also, try to run a |
@kirich1409 I just ran into this problem as well. In my case, the issue was with line endings in I was able to fix it by disabling You can just add this command to your CI pipelines before executing $ git config core.autocrlf false For instance, in a GitHub Actions yaml: ...
- uses: actions/checkout@v2
with:
token: ${{ secrets.SERVICE_TOKEN }}
# JGit will automatically convert LF files to CRLF before before performing a diff,
# which makes gradlew.bat appear to be modified when it isn't.
# This breaks change-tracker-plugin
- name: disable git auto CRLF
run: git config core.autocrlf false
- name: test changed modules
run: ./gradlew testDebugChangedModules
... |
Thanks @RBusarow for find the problem. |
I've integrated the plugin and has problem in the next condition:
Task
changedModules
always return all modules as changed. What is incorrect?The text was updated successfully, but these errors were encountered: