Snapcraft is pulling content snap before building a snap

Bug #1869505 reported by keshavbhatt
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snapcraft
Triaged
Low
Unassigned

Bug Description

snapcraft both in stable and edge channel is pulling content snap described in plugs of app’s snapcraft before building the snap package of app.

This is very annoying and i don’t know what is the use of such behavior. Content snaps are usually used to package runtime libs and other things required by app. I dont know why they are required by snapcraft before building the .snap file of app.

my app’s snapcraft.yaml (https://paste.ubuntu.com/p/fF5Wrv5hny/)

Command i used to build snap :
`snapcraft--destructive-mode`
 cause i don’t need build it inside a VM, since libs and runtime is built in VM and are in content snap already this snap just hold application executable and snap meta.

Same happen with `snapcraft` command, Hence snapcraft is taking huge resources to build a a snap package which don't even have any package to stage.

Revision history for this message
keshavbhatt (keshavnrj) wrote :

This bug is also being discussed on forum.snapcraft.io in following link.
https://forum.snapcraft.io/t/snapcraft-is-pulling-content-snap-before-building-a-snap/16273/2

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

This is a feature, to ensure that what you build has the runtime satisfied. We can add a flag of the types of "I know what I am doing, don't help me" to snapcraft.yaml and then you don't get the "Missing dependencies" help for stage-packages, stage-snaps or plugs you could add to solve those missing dependencies.

Changed in snapcraft:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
keshavbhatt (keshavnrj) wrote :

a developer knows what he has added to plugs as he knows that the content snap will be published by him as well, see the snapcraft file there is no stage-packages, stage-snaps property anywhere.

still snapcraft need to install cnotent snap, 240Mb in my case.

I don't think content snaps entry need a check by snapcraft. If still this is just a check, whats the need to install it ??

Revision history for this message
keshavbhatt (keshavnrj) wrote :

This is a bug, and if not a annoying feature which has no use. Why in first place snapcraft need to check if there is content snap in the store or not before building a snap package ??? what if there is no internet connection ??? what if the developer decides to upload content snap later. what if he don't want to add content snap at all and don't want add his snap package to store ?

Revision history for this message
keshavbhatt (keshavnrj) wrote :

Also this behaviour of snapcraft is making it crash when the machine is offline.Here is the link to the bug report :
https://bugs.launchpad.net/snapcraft/+bug/1869506

Revision history for this message
Sergio Schvezov (sergiusens) wrote : Re: [Bug 1869505] Re: Snapcraft is pulling content snap before building a snap

On sáb, 2020-03-28 at 15:07:36 -0300, keshavbhatt wrote:

> I don't think content snaps entry need a check by snapcraft. If still
> this is just a check, whats the need to install it ??

I think you got it backwards. The content snap is downloaded to ensure that what
you are building can be satisfied with what is provided by the content snap,
which is why I proposed a "I am on my own" mechanism.

Revision history for this message
keshavbhatt (keshavnrj) wrote :

I have few points i want make, please read the linked thread from snapcraft forum https://forum.snapcraft.io/t/snapcraft-is-pulling-content-snap-before-building-a-snap/16273/4?u=keshavnrj

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.