leandroBorgesFerreira / dag-command

Affected gradle modules by branch
Apache License 2.0
46 stars 11 forks source link

Not displaying any changed modules #24

Open locomike opened 3 years ago

locomike commented 3 years ago

Hi,

I stumbled upon your plugin and it is just what I was looking for. However, I haven't managed to get it work.

If I run git diff origin/development --dirstat=files

I get a response like:

50.0% my-library/src/main/java/androidx/core/app/

When I run ./gradlew dag-command I get the following output:

> Task :dag-command
--- Config ---
Filter: all
Default branch: origin/development
Output type: json
Output path: /Users/miguelcohnen/dev/ixigo/android/build
--------------

Writing adjacency list... Done

Writing edges list... Done

Build stages... Done

Graph information:
Nodes count: 23
Edges count: 53
Build stages: 9
Build coefficient: 5.434782608695652
Changed modules:

Affected modules:

Both Changed Modules and Affected Modules are empty. However, I checked the adjacency graph and it is correct.

I believe the issue is calculating th diff changes. If I modify the config to put a branch that does not exist, the script works fine as well and is also not returning any modules.

Any idea how to debug this?

Thanks!

leandroBorgesFerreira commented 8 months ago

Sorry that I never reply to this issue... I was probably busy in the time this issue was created. In version 1.10.0 you should no longer see this problem.

When you would like to debug that is happening use the git command:

git diff [default branch] --dirstat=files

And check your changes files and folders.