`snap info` hides useful information (issue tracker, source code links) behind --verbose
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
New
|
Undecided
|
Unassigned |
Bug Description
When running `snap info $SNAP`, a summary of output is presented to the user, including the `Contact:` field. Historically, there used to be less fields and `Contact:` was used from everything to personal email addresses to bug trackers.
Snapd now supports additional fields, such as `issues`, `source code`, etc, which are prominently displayed on snapcraft.io/$SNAP - but not shown by default in the CLI without running `snap info --verbose`.
Is this behaviour intentional? In my opinion, these links are prominent in the Web UI for a reason and should be similarly prominent on the CLI.
I'd believe the change would be removing the verbosity check here:
And updating any failing tests to compensate for the new behaviour.
Would the snap gang be happy with me proposing a PR to remove the need for `--verbose` for these fields :)?
description: | updated |
From the duplicate LP:2074171:
> Note that the `source-code` attribute is part of snapcraft.yaml, not the snap metadata file (meta/snap.yaml). Those attributes are converted into `links[<string>] = []string` in the snap metadata. /github. com/canonical/ mesa-2404/ issues /github. com/canonical/ mesa-2404 /github. com/canonical/ mesa-2404
>
> Those are shown when you pass --verbose:
>
> ```
> $ snap info --verbose mesa-2404
> ...
> links:
> contact:
> - https:/
> source-code:
> - https:/
> website:
> - https:/
> ```
>
> Anyhow, I'll mark this as duplicate of #2064651 which requested to show some of the links by default if present.
Chromium defines[1] source-code but that is nowhere to be seen in snap info, but contact and website are although they are not defined. Something is off...
---> /snapcraft. io/chromium /bugs.launchpad .net/ubuntu/ +source/ chromium- browser/ +bugs?field. tag=snap /bugs.launchpad .net/ubuntu/ +source/ chromium- browser/ +bugs?field. tag=snap /code.launchpad .net/~chromium- team/chromium- browser/ +git/snap- from-source
% snap info --verbose chromium
name: chromium
summary: Chromium web browser, open-source version of Chrome
health:
status: unknown
message: health has not been set
publisher: Canonical✓
store-url: https:/
contact: https:/
links:
contact:
- https:/
website:
- https:/
license: unset
<---
[1] https:/ /git.launchpad. net/~chromium- team/chromium- browser/ +git/snap- from-source/ tree/snapcraft. yaml?h= stable# n4