← 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

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.

Suggested action: close not a bug

Reason: The error is working as intended: rockcraft/extensions/fastapi.py:193 enforces that every prime entry in fastapi-framework/install-app starts with app/ (IMAGE_BASE_DIR = "app"), and the reporter's list includes .env and gemini_api without that prefix. Maintainer javierdelapuente already explained the fix (prefix all entries with app/) on 2025-05-30 and asked the reporter to confirm; with no response for ~6 months, this is a usage question resolved through configuration, not a bug.

Impact: 20 Quick Win: 17.0 Staleness: 75 Complexity: 15 Confidence: 80 Support Request: 85

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
qwen/qwen3.8-27b
Impact: 20
Quick Win: 17.0
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.
qwen3.6-35b-a3b-mtp-q6
Staleness: 90
Complexity: 10
Confidence: 90
Support Request: 95
close not a bug fastapi-framework extension incorrectly flags prime paths as missing the app/ prefix when root-level files are included. Maintainer clarified all entries must start with app/ and requested user verification. Awaiting response.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.