Adding stage packages results in rebuilding the corresponding part

Bug #1852746 reported by Olivier Tilloy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Triaged
Medium
Unassigned

Bug Description

I'm helping someone build their first snap of a rust application, and after successfully building the snap for the first time, snapcraft correctly warned that there are missing stage packages.
So we added the stage packages to the part, re-ran snapcraft, and it's fully rebuilding the part (150 rust crates). No build-packages were added, so it doesn't feel right to clean and rebuild a part if only stage packages were added. Or am I missing a good reason for doing that?

Revision history for this message
Sergio Schvezov (sergiusens) wrote :

Interpreters can be brought in through stage packages and change the entire landscape of what is expected, this is almost like using "after"

Changed in snapcraft:
status: New → Confirmed
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

How to fix it consistently is not something we can easily do unless we reverse the toggle and make it consistently not rebuild things.

Changed in snapcraft:
status: Confirmed → Triaged
importance: Undecided → Medium
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.