environment sections are reordered
Bug #1868460 reported by
Zygmunt Krynicki
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
Low
|
Chris Patterson | ||
snapd |
Triaged
|
Medium
|
Unassigned |
Bug Description
Snapcraft cannot reorder environment sections. This applies both to snap-wide and app-specific environment sections. This matters because those entries can refer to earlier definitions and snapd implements this semantics precisely.
In particular:
name: ...
version: ...
environment:
B: correct
A: $B
Expands, via snapd, to B=correct, A=correct
When re-ordered alphabetically this property is lost.
Changed in snapcraft: | |
assignee: | nobody → Chris Patterson (cjp256) |
status: | New → Confirmed |
Changed in snapcraft: | |
status: | Opinion → Fix Committed |
importance: | Undecided → Low |
Changed in snapcraft: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Well, this is exactly what YAML is https:/ /yaml.org/ spec/1. 2/spec. html#id2765608
If you wanted order, then you should allow a sequence as input.