-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: record pkg id provenance (#297)
* feat: record pkg id provenance Add pkgIdProvenance to the dep-graph nodes where the coordinate has been changed when using `--gradle-normalize-deps`. This allows users to see what the original coordinate was in dep-graph JSON output. Nodes will appear like so: ```json { "nodes": [ { "nodeId": "org.apache.logging.log4j:[email protected]", "pkgId": "org.apache.logging.log4j:[email protected]", "info": { "pkgIdProvenance": "my.logging:[email protected]", } } ] } ``` Where "my.logging:log4j" has been identified as "org.apache.logging.log4j:log4j-core". When co-ordinates have not been changed, there is no label. * test: ignore failing test Follow up in a later PR on why this test is failing since the latest release of guava. For some reason we're including the 'default' configuration when we shouldn't.
- Loading branch information
Showing
4 changed files
with
130 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,38 +95,73 @@ | |
{ | ||
"nodeId": "unknown:j2objc-annotations-ba035118bc8bac37d7eff77700720999acd9986d@unknown" | ||
} | ||
] | ||
], | ||
"info": { | ||
"labels": { | ||
"pkgIdProvenance": "com.google.guava:[email protected]" | ||
} | ||
} | ||
}, | ||
{ | ||
"nodeId": "unknown:failureaccess-1dcf1de382a0bf95a3d8b0849546c88bac1292c9@unknown", | ||
"pkgId": "unknown:failureaccess-1dcf1de382a0bf95a3d8b0849546c88bac1292c9@unknown", | ||
"deps": [] | ||
"deps": [], | ||
"info": { | ||
"labels": { | ||
"pkgIdProvenance": "com.google.guava:[email protected]" | ||
} | ||
} | ||
}, | ||
{ | ||
"nodeId": "unknown:listenablefuture-b421526c5f297295adef1c886e5246c39d4ac629@unknown", | ||
"pkgId": "unknown:listenablefuture-b421526c5f297295adef1c886e5246c39d4ac629@unknown", | ||
"deps": [] | ||
"deps": [], | ||
"info": { | ||
"labels": { | ||
"pkgIdProvenance": "com.google.guava:[email protected]" | ||
} | ||
} | ||
}, | ||
{ | ||
"nodeId": "unknown:jsr305-25ea2e8b0c338a877313bd4672d3fe056ea78f0d@unknown", | ||
"pkgId": "unknown:jsr305-25ea2e8b0c338a877313bd4672d3fe056ea78f0d@unknown", | ||
"deps": [] | ||
"deps": [], | ||
"info": { | ||
"labels": { | ||
"pkgIdProvenance": "com.google.code.findbugs:[email protected]" | ||
} | ||
} | ||
}, | ||
{ | ||
"nodeId": "unknown:checker-qual-6b83e4a33220272c3a08991498ba9dc09519f190@unknown", | ||
"pkgId": "unknown:checker-qual-6b83e4a33220272c3a08991498ba9dc09519f190@unknown", | ||
"deps": [] | ||
"deps": [], | ||
"info": { | ||
"labels": { | ||
"pkgIdProvenance": "org.checkerframework:[email protected]" | ||
} | ||
} | ||
}, | ||
{ | ||
"nodeId": "unknown:error_prone_annotations-562d366678b89ce5d6b6b82c1a073880341e3fba@unknown", | ||
"pkgId": "unknown:error_prone_annotations-562d366678b89ce5d6b6b82c1a073880341e3fba@unknown", | ||
"deps": [] | ||
"deps": [], | ||
"info": { | ||
"labels": { | ||
"pkgIdProvenance": "com.google.errorprone:[email protected]" | ||
} | ||
} | ||
}, | ||
{ | ||
"nodeId": "unknown:j2objc-annotations-ba035118bc8bac37d7eff77700720999acd9986d@unknown", | ||
"pkgId": "unknown:j2objc-annotations-ba035118bc8bac37d7eff77700720999acd9986d@unknown", | ||
"deps": [] | ||
"deps": [], | ||
"info": { | ||
"labels": { | ||
"pkgIdProvenance": "com.google.j2objc:[email protected]" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters