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

feat: abbreviated dependency tree printing #1814

Merged
merged 6 commits into from
Jan 9, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions doc/user-changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,34 @@ stay on top of `alr` new features.

### Abbreviated `--tree` output for repeating dependencies

PR [1814](https://github.com/alire-project/alire/pull/1814)

By default, repeated dependencies are now omitted by `--tree` output, e.g.:

```
$ alr show --tree libgpr2
...
Dependencies (tree):
gnat=14.1.3 (gnat_native) (>=14)
gnatcoll=25.0.0 (~25.0.0)
├── gnat=14.1.3 (gnat_native) (>=13)
└── libgpr=25.0.0 (~25.0.0)
├── gnat=14.1.3 (gnat_native) (/=2020)
└── xmlada=25.0.0 (~25.0.0)
└── gnat=14.1.3 (gnat_native) (>=11)
gnatcoll_gmp=25.0.0 (~25.0.0)
├── gnatcoll=25.0.0 (~25.0.0) ···
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest a small change. Make the suspension points on a new line like so:

   gnatcoll_gmp=25.0.0 (~25.0.0)
   ├── gnatcoll=25.0.0 (~25.0.0) 
       └── ...

This better shows that there are dependencies omitted in the output in my opinion.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair point.

└── libgmp=6.3.0 (*)
gnatcoll_iconv=25.0.0 (~25.0.0)
└── gnatcoll=25.0.0 (~25.0.0) ···
```

Whenever '...' appears, it means that the preceding release has its
dependencies already printed somewhere in the preceding tree lines.

The old behavior can be obtained by increasing verbosity with the global `-v`
switch.

### Faster `alr search` without resolving dependencies

PR [1799](https://github.com/alire-project/alire/pull/1799)
Expand Down
Loading