← Back to issue list

confusing "stage-packages" syntax in webcam-webui example

View original Launchpad issue

Metadata

Project
snapcraft
Number
#1521212
Type
issue
State
open
Author
~liu-xiao-guo
Labels
Created
2015-11-30 14:29:49.091431+00:00
Updated
2016-01-20 22:30:00.278249+00:00
Closed
2016-01-20 22:29:59.547663+00:00

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

https://github.com/ubuntu-core/snapcraft/blob/master/examples/webcam-webui/snapcraft.yaml The above example is pretty nice example, demonstrating how to integrate debian pacakges into a snap application. However, the usage of the "stage-packages" is very confusing. In the snapcraft.yaml, some part of it: cam:     plugin: go     go-packages:         - github.com/mikix/golang-static-http     stage-packages:       - fswebcam     filesets:       fswebcam:         - usr/bin/fswebcam         - lib         - usr/lib       go-server:         - bin/golang-*     stage:       - $fswebcam       - $go-server     snap:       - $fswebcam       - $go-server       - -usr/share/doc glue:     plugin: copy     files:       webcam-webui: bin/webcam-webui   config:     plugin: python3     source: . For the above, "stage-packages" and "go-packages" are two different packages, and they are unrelated to each other. fswebcam is actually in C code. The plugin is "go" for the part "cam". "stage-packages" does not really use "go" plugin. It is confusing to the developers why the two are put together? Can we move the "stage-packages" to the "glue" or "config". If yes, why should it be there in the "cam"? It seems to me there is no logical reason to have the two packages there together. Would it be better to have another part, and does the fswebcam part to make the code clearer? Thanks & best regards, XiaoGuo

Evaluation history

No evaluation history available.