Commit 504cbf5
committed
feat(graph): Improve
The `graph why` command is a tool for developers to understand the
dependency graph. This change improves its output to be more useful and
clearer.
The output now includes the requirement specifier from the parent package
along with the parent package name. This makes it easier to understand
not just which package is pulling in a dependency, but which version or
range of versions it requires.
The output for top-level dependencies specified on the command line or
in a requirements file is also improved to clearly label them as such.
Cycle detection is included to prevent infinite loops and make it clear
where circular dependencies exist.
Signed-off-by: Doug Hellmann <dhellmann@redhat.com>why command output1 parent 493ceb4 commit 504cbf5
2 files changed
+40
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
377 | | - | |
378 | 377 | | |
379 | | - | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
380 | 385 | | |
381 | 386 | | |
382 | 387 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
209 | | - | |
| 208 | + | |
210 | 209 | | |
211 | 210 | | |
212 | 211 | | |
| |||
215 | 214 | | |
216 | 215 | | |
217 | 216 | | |
218 | | - | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
219 | 233 | | |
220 | 234 | | |
221 | 235 | | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
222 | 239 | | |
223 | 240 | | |
224 | | - | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
225 | 244 | | |
| 245 | + | |
226 | 246 | | |
227 | 247 | | |
228 | 248 | | |
229 | 249 | | |
230 | | - | |
| 250 | + | |
231 | 251 | | |
232 | 252 | | |
233 | | - | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
234 | 261 | | |
235 | 262 | | |
236 | 263 | | |
| |||
0 commit comments