cleanbuild (through lxd)
Bug #1480144 reported by
Simon Eisenmann
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
Wishlist
|
Sergio Schvezov |
Bug Description
I was trying out snapcraft current head and found that it is not the tool i can use at the moment, as i cannot compile everything quickly on the target architecture in a clean environment.
For debian packages we use a combination of cowbuilder, cowdancer and pbuilder to provide clean repeatable build environment on the various target environments.
It should be evaluated how building of snaps can be integrated with gear like that so it is possible to build snaps with similar gear. Ultimatively something like "ARCH=armhf snapcraft --cowbuilder ..." should produce snaps using the defined environment.
affects: | snappy → snapcraft |
Changed in snapcraft: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in snapcraft: | |
status: | Invalid → Triaged |
summary: |
- Snapcraft should be able to run in clean environment with - pbuilder/cowbuilder + cleanbuild (through lxd) |
Changed in snapcraft: | |
milestone: | none → 2.2 |
Changed in snapcraft: | |
importance: | High → Wishlist |
Changed in snapcraft: | |
assignee: | nobody → Sergio Schvezov (sergiusens) |
status: | Triaged → In Progress |
Changed in snapcraft: | |
milestone: | 2.2 → none |
Changed in snapcraft: | |
milestone: | none → next |
Changed in snapcraft: | |
status: | In Progress → Fix Committed |
Changed in snapcraft: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Thanks for the feedback, Simon.
We want to support both a developer-centric "quick iterative build"
experience, and a "clean-room build". The former would be aimed at
code-compile-run iteration, and probably wants to happen in a native
environment (rather than via an emulator) on a laptop, the latter is
probably best done in a clean, repeatable VM or build farm.
I think your report is about the latter, in which case I agree we want
to support a "ship this snap off for building cleanly" experience.
Can you comment on the iterative use case?
Mark