← Back to issue list

docs: Rockcraft 1.18.0 documentation claims Ubuntu 26.04 support but it doesn't seem to work in the app

View original Github issue

Metadata

Project
rockcraft
Number
#1198
Type
issue
State
open
Author
GregCasbolt
Labels
Created
Updated
Closed

Current evaluation

Rockcraft 1.18.0 docs claim ubuntu@26.04 build-base support but the app raises KeyError; maintainer confirmed 26.04 was devel-only then and promised a better error message. 26.04 is now stabilized in 1.19, so the core issue is resolved.

Suggested action: keep open

Reason: Maintainer tigarmo actively triaged this (2026-04-23), explained 26.04 was devel-only in 1.18, and explicitly committed: 'We'll improve that particular error message, thanks for the report!' The core 26.04 support was delivered in 1.19 (commit ad7df6a0, PR #1200, release notes confirm 'stable and recommended'), but the promised error-message improvement for the KeyError in get_plugin_group is not yet evident in the code, so the issue remains valid and open.

Impact: 45 Quick Win: 33.75 Staleness: 55 Complexity: 25 Confidence: 80 Support Request: 30

Issue body

*Please describe the question or issue you're facing with "Change from ubuntu@24.04 to ubuntu@26.04 - Rockcraft documentation".* I have rockcraft installed: ```shell $ rockcraft --version rockcraft 1.18.0 ``` Switching `build-base: ubuntu@24.04` to `build-base: ubuntu@26.04` in my `rockcraft.yaml` file results in: ``` Traceback (most recent call last): File "/snap/rockcraft/4445/bin/rockcraft", line 12, in <module> sys.exit(run()) ^^^^^ File "/snap/rockcraft/4445/lib/python3.12/site-packages/rockcraft/cli.py", line 51, in run return app.run() ^^^^^^^^^ File "/snap/rockcraft/4445/lib/python3.12/site-packages/craft_application/application.py", line 685, in run self._initialize_craft_parts() File "/snap/rockcraft/4445/lib/python3.12/site-packages/craft_application/application.py", line 821, in _initialize_craft_parts self._set_plugin_group() File "/snap/rockcraft/4445/lib/python3.12/site-packages/craft_application/application.py", line 809, in _set_plugin_group group = self.services.get_class("lifecycle").get_plugin_group(build_plan[0]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/snap/rockcraft/4445/lib/python3.12/site-packages/rockcraft/services/lifecycle.py", line 100, in get_plugin_group return plugins.get_plugin_group(str(build_info.build_base)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/snap/rockcraft/4445/lib/python3.12/site-packages/rockcraft/plugins/groups.py", line 52, in get_plugin_group group = _PLUGINS[build_base] ~~~~~~~~^^^^^^^^^^^^ KeyError: 'ubuntu@26.04' ``` Guessing the error is being thrown from https://github.com/canonical/rockcraft/blob/main/rockcraft/plugins/groups.py#L100 Not sure whether the fix is to update the doc for 1.18.0 or fix the app. --- *Reported from: https://documentation.ubuntu.com/rockcraft/1.18.0/how-to/change-from-ubuntu2404-to-ubuntu2604/*

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 45
Quick Win: 33.75
Staleness: 55
Complexity: 25
Confidence: 80
Support Request: 30
keep open Rockcraft 1.18.0 docs claim ubuntu@26.04 build-base support but the app raises KeyError; maintainer confirmed 26.04 was devel-only then and promised a better error message. 26.04 is now stabilized in 1.19, so the core issue is resolved.
qwen/qwen3.6-35b-a3b
Staleness: 20
Complexity: 15
Confidence: 90
Support Request: 5
keep open Documentation claims Ubuntu 26.04 support but app throws KeyError. Maintainer confirmed it is currently a devel base, provided workarounds, and plans to stabilize it in the upcoming 1.19 release.
qwen3.6-35b-a3b-mtp-q6
Staleness: 35
Complexity: 25
Confidence: 90
Support Request: 10
keep open Documentation claims Ubuntu 26.04 support but Rockcraft 1.18.0 throws a KeyError. Maintainer clarified it is a devel base, provided workarounds, and plans to stabilize full support in v1.19.
qwen3.6-35b-a3b-mtp-q6
Staleness: 15
Complexity: 10
Confidence: 90
Support Request: 80
close not a bug User reports KeyError when using ubuntu@26.04 as build-base in Rockcraft 1.18.0, citing documentation. Maintainer clarified it is currently a devel base, provided workarounds, and outlined a timeline for stable support in v1.19.
qwen3.6-35b-a3b-mtp-q6
Staleness: 45
Complexity: 20
Confidence: 90
Support Request: 10
keep open Rockcraft 1.18.0 docs claim direct Ubuntu 26.04 support, causing a KeyError. The base is currently devel-only. Maintainers provided a workaround, will improve error messaging, and plan to stabilize 26.04 support in the upcoming Rockcraft 1.19 release.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: rockcraft#1200 (confidence 85%)

    Commit ad7df6a0 'feat: stabilize ubuntu@26.04 build-base' adds ubuntu@26.04 to _PLUGINS in groups.py, resolving the KeyError for the stable base; 1.19 release notes confirm 26.04 is stable.

  • Related To: rockcraft#1074 (confidence 70%)

    Commit 8995d20e 'fix: ubuntu@26.04 is not a valid build-base yet' is the earlier change that made 26.04 invalid as a direct build-base, which is what triggered this report.

Related issues

Issue Project State Summary Similarity
#764 feat: update 'rockcraft init' base to 24.04 rockcraft merged Merged the update to change the rockcraft init base to Ubuntu 24.04, resolving issue #748. Approved by two reviewers with minimal changes across two files.
71%