Changing the base doesn't change the build VM
Bug #1794506 reported by
Kyle Fazzari
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
High
|
Claudio Matsuoka |
Bug Description
Once snapcraft creates a build VM, changing the base has no effect-- it continues to use the build VM it initially created, even though it now corresponds to a different base.
Changed in snapcraft: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → 3.0 |
Changed in snapcraft: | |
milestone: | 3.0 → 3.0.1 |
Changed in snapcraft: | |
milestone: | 3.0.1 → 3.1 |
Changed in snapcraft: | |
milestone: | 3.1 → 3.1.1 |
Changed in snapcraft: | |
assignee: | Sergio Schvezov (sergiusens) → Claudio Matsuoka (cmatsuoka) |
Changed in snapcraft: | |
status: | Triaged → Confirmed |
status: | Confirmed → In Progress |
Changed in snapcraft: | |
status: | In Progress → Fix Committed |
Changed in snapcraft: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I see a few different ways to deal with this situation, and we must choose one that better meets the product goals taking into account implementation effort for a situation that's probably not very frequent.
Our options:
1. Determine if base is outdated. If so, issue a warning telling the user to clean and retry.
2, Determine if base is outdated, then clean and retry automatically. Harder to implement, can add complexity to lifecycle processing.
3. Add a base identifier to the build provider ID (e.g. snapcraft- foobar- core18 instead of snapcraft-foobar). Base changes are handled automatically, but one extra provider is instatiated. Implementation cost is very low, and base changes should be rare. Acceptable?