A Chinese character in the snapcraft.yaml crashes the snapcraft
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
High
|
Sergio Schvezov | ||
pyyaml (Debian) |
Fix Released
|
Unknown
|
|||
pyyaml (Ubuntu) |
Fix Released
|
High
|
Barry Warsaw |
Bug Description
In my snapcraft.yaml's summay, it contains an unrecoginized unicode space (between Piglow and API). When I try to use snapcraft to compile my project, it crashes:
name: piglow2
version: 1.0
vendor: XiaoGuo, Liu <email address hidden>
summary: Piglow API
description: This is the webserver API to control the piglow
icon: icon.png
services:
piglow2:
start: bin/piglow2
parts:
piglow:
plugin: go
source: ./src/piglow2
The output is like:
ubuntu@
Traceback (most recent call last):
File "/usr/local/
__import_
File "/usr/lib/
self.
File "/usr/lib/
exec(code, namespace, namespace)
File "/usr/local/
snapcraft.
File "/usr/local/
args.func(args)
File "/usr/local/
snap(args)
File "/usr/local/
cmd(args)
File "/usr/local/
config = _load_config()
File "/usr/local/
_config = snapcraft.
File "/usr/local/
self.data = _snapcraft_
File "/usr/local/
return yaml.load(fp)
File "/usr/lib/
loader = Loader(stream)
File "/usr/lib/
Reader.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
data = self.stream.
File "/usr/lib/
return codecs.
Attached please find the snapcraft.yaml, and my project is at:
Changed in snapcraft: | |
status: | Incomplete → Fix Committed |
importance: | Undecided → High |
assignee: | nobody → Sergio Schvezov (sergiusens) |
milestone: | none → 0.6 |
Changed in snapcraft: | |
status: | Fix Committed → Fix Released |
Changed in pyyaml (Ubuntu): | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Barry Warsaw (barry) |
Changed in pyyaml (Debian): | |
status: | Unknown → Fix Released |
Changed in pyyaml (Ubuntu): | |
status: | In Progress → Fix Released |
Can I get more details about your environment? I don't see this
sergiusens@ lindon: ~/source/ github. com/liu- xiao-guo$ git clone https:/ /github. com/liu- xiao-guo/ piglow2 lindon: ~/source/ github. com/liu- xiao-guo/ piglow2$ ~/source/ github. com/ubuntu- core/snapcraft/ bin/snapcraft /home/sergiusen s/source/ github. com/liu- xiao-guo/ piglow2/ parts/piglow/ go go get -t -d ./piglow2/... /home/sergiusen s/source/ github. com/liu- xiao-guo/ piglow2/ parts/piglow/ go go install ./piglow2/... systemd: package_ yaml_descriptio n_present: piglow2 systemd: package_ yaml_required_ key:piglow2: description 1.0_amd64. snap: FAIL 1.0_amd64. snap» generado
Clonar en «piglow2»...
remote: Counting objects: 16, done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 16 (delta 3), reused 16 (delta 3), pack-reused 0
Unpacking objects: 100% (16/16), done.
Checking connectivity... hecho.
sergiusens@
Pulling piglow
env GOPATH=
Building piglow
env GOPATH=
Staging piglow
Snapping piglow
Snapping |
Errors
------
- snappy-
required description field not specified
- snappy-
Missing required field 'description'
piglow2_
Snap «piglow2_