Add a which-part-provided command or output (behind a flag)

Bug #1759700 reported by Nish Aravamudan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Wishlist
Kyle Fazzari

Bug Description

As discussed with kyrofa on IRC, it would be very helpful to query snapcraft for which part is responsible for a path in a snap.

Additionally, perhaps hidden behind a flag, it would be very helpful for new (or optimizing) snappers to be able to have snapcraft list all files in the snap due to each part. This would be used, for instance, to determine what paths can be removed from stage/prime/etc in the YAML, as they might be unused, but the part to modify is not immediately obvious.

Kyle Fazzari (kyrofa)
affects: snapcraft (Ubuntu) → snapcraft
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

Kyrofa can you add more detail?

Changed in snapcraft:
assignee: nobody → Kyle Fazzari (kyrofa)
milestone: none → 2.43
Revision history for this message
Kyle Fazzari (kyrofa) wrote :

This idea was borne out of debugging git-ubuntu, where we found multiple versions of the same library and were uncertain which part was providing which library. Snapcraft already knows this information thanks to state tracking, it would be pretty cool to expose that to the end user. Still need to figure out what this looks like, though.

Kyle Fazzari (kyrofa)
Changed in snapcraft:
importance: Undecided → Wishlist
Revision history for this message
Kyle Fazzari (kyrofa) wrote :
Revision history for this message
Kyle Fazzari (kyrofa) wrote :
Changed in snapcraft:
status: New → In Progress
Changed in snapcraft:
milestone: 2.43 → none
Revision history for this message
Kyle Fazzari (kyrofa) wrote :
Kyle Fazzari (kyrofa)
Changed in snapcraft:
status: In Progress → Fix Committed
Kyle Fazzari (kyrofa)
Changed in snapcraft:
milestone: none → 2.43
Changed in snapcraft:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.