← Back to issue list

fastapi-framework extension cannot detect 'prime' entry from rockcraft.yaml

View original Github issue

Metadata

Project
rockcraft
Number
#882
Type
issue
State
open
Author
lego37yoon
Labels
—
Created
Updated
Closed
—

Current evaluation

User's rockcraft.yaml used prime entries without the app/ prefix; fastapi-framework requires all entries start with app/. Maintainer explained the correct YAML and asked for confirmation; reporter never replied.

Suggested action: close not a bug

Reason: The validation is intentional: `rockcraft/extensions/fastapi.py` `_app_prime` raises the ExtensionError unless every entry matches `re.match(f"-? *{self.IMAGE_BASE_DIR}/", p)` (IMAGE_BASE_DIR = "app"), and `docs/reference/extensions/fastapi-framework.rst` documents the key as following "the ``app/<filename>`` notation". javierdelapuente's 2025-05-30 comment shows exactly the two offending entries (`.env` and `gemini_api`) and gives the corrected `app/.env` / `app/gemini_api` prime list, asking the reporter to verify; the reporter never responded and nothing else has happened in 490 days. This is a usage misunderstanding of documented behaviour, not a detection bug.

Evaluated by: mr-cal-bot

Impact: 15 Quick Win: 4 Complexity: 20 Confidence: 87 Actionability: 30

Issue body

### Bug Description With `rockcraft.yaml` below, `ROCKCRAFE_ENABLE_EXPERIMENTAL_EXTENSIONS=true rockcraft pack` command which guided by official documents([1](https://documentation.ubuntu.com/rockcraft/en/stable/tutorial/fastapi/), [2](https://documentation.ubuntu.com/rockcraft/en/latest/reference/extensions/fastapi-framework/)) not worked as expected. Requires 'prime' entry under 'parts' > 'fastapi-framework/install-app', but `rockcraft.yaml` already has. ### To Reproduce 1. Clone repository with this command in Multipass VM `git clone https://github.com/GDGoC-SCHU/Travia_BE` 2. `cd Travia_BE` 3. Init rockcraft file with `rockcraft init --profile fastapi-framework` 4. Edit `rockcraft.yaml` file like below. 5. Run `ROCKCRAFE_ENABLE_EXPERIMENTAL_EXTENSIONS=true rockcraft pack` script and get error message from rockcraft. ```bash *EXPERIMENTAL* extension 'fastapi-framework' enabled fastapi-framework extension requires the 'prime' entry in the fastapi-framework/install-app part to start with app/ For more information, check out: https://documentation.ubuntu.com/rockcraft/en/latest/reference/extensions/fastapi-framework ``` ### Environment - Running in Multipass VM - Guest OS: Ubuntu 24.04 LTS - Host OS: Kubuntu 24.10 - rockcraft : 1.11.0.post4+g22d0b2a (installed using snap) ### rockcraft.yaml ```yaml name: travia-be base: ubuntu@24.04 version: 0.1 summary: AI-based travel scheduler description: Google Gemini based AI travel scheduler with Google Solutions Challenge platforms: amd64: arm64: extensions: - fastapi-framework parts: fastapi-framework/dependencies: stage-packages: - mariadb-server fastapi-framework/install-app: prime: - .env - app/app.py - app/api/v1/endpoints - app/crud - app/db - app/models - app/schemas - app/services - gemini_api ``` ### Relevant log output ```shell Log not saved, but can get some error output from terminal: *EXPERIMENTAL* extension 'fastapi-framework' enabled fastapi-framework extension requires the 'prime' entry in the fastapi-framework/install-app part to start with app/ For more information, check out: https://documentation.ubuntu.com/rockcraft/en/latest/reference/extensions/fastapi-framework ```

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 15
Quick Win: 4
Complexity: 20
Confidence: 87
Actionability: 30
close not a bug User's rockcraft.yaml used prime entries without the app/ prefix; fastapi-framework requires all entries start with app/. Maintainer explained the correct YAML and asked for confirmation; reporter never replied.
stealth/space-bunny-alpha
Impact: 12
Quick Win: 11
Complexity: 4
Confidence: 97
Actionability: 96
close not a bug FastAPI correctly requires app/-prefixed prime paths; the reporter’s .env and gemini_api entries omitted the prefix, and the maintainer supplied the corrected configuration.
qwen/qwen3.6-35b-a3b
Impact: 0
Quick Win: 0
Complexity: 0
Confidence: 100
Actionability: 100
close not a bug fastapi-framework extension rejects prime entries not prefixed with app/. Maintainer explained the fix: all prime entries must start with app/.
qwen/qwen3.8-27b
Impact: 20
Quick Win: 17
Staleness: 75
Complexity: 15
Confidence: 80
Support Request: 85
close not a bug fastapi-framework extension rejects a rockcraft.yaml whose prime list contains entries not prefixed with app/ (.env, gemini_api). Maintainer explained the app/ prefix requirement and asked the reporter to verify a corrected config; no reply since 2025-05-30.
qwen/qwen3.6-35b-a3b
Staleness: 90
Complexity: 15
Confidence: 90
Support Request: 90
close not a bug User reports fastapi-framework extension fails to detect prime entry despite valid YAML. Maintainer clarified all prime paths must start with app/ and requested verification. Awaiting author response.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 15
Confidence: 90
Support Request: 85
close not a bug Reporter claims fastapi-framework extension incorrectly rejects valid prime paths. Maintainer clarified all paths must start with app/, explaining it's a configuration requirement. No reporter response in over a year.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 15
Confidence: 90
Support Request: 90
close not a bug User reports extension error regarding prime paths in rockcraft.yaml. Maintainer clarified that all paths must start with app/ and provided corrected config. Issue is a configuration misunderstanding, not a bug.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.