← Back to issue list

fix(Project): get metadata from the correct project dir

View original Github issue

Metadata

Project
charmcraft
Number
#2644
Type
pull request
State
merged
Author
lengau
Labels
Created
Updated
Closed

Current evaluation

Merged to fix metadata retrieval from the correct project directory, working around a craft-application limitation. Resolves #2493 and CRAFT-670. Approved by two reviewers and passed CI checks. Non-blocking type checker warnings were noted.

Suggested action:

No scores available.

Issue body

This works around a limitation in craft-application where _app_preprocess_project can't get the project file. Fixes #2493 CRAFT-670 --- - [x] I've followed the [contribution guidelines](https://github.com/canonical/charmcraft/blob/main/CONTRIBUTING.md). - [x] I've signed the [CLA](http://www.ubuntu.com/legal/contributors/). - [x] I've successfully run `make lint && make test`. - [x] I've added or updated any relevant documentation. - [x] I've updated the relevant release notes.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged to fix metadata retrieval from the correct project directory, working around a craft-application limitation. Resolves #2493 and CRAFT-670. Approved by two reviewers and passed CI checks. Non-blocking type checker warnings were noted.
qwen3.6-35b-a3b-mtp-q6 Merged fix to retrieve project metadata from the correct directory, working around a craft-application limitation. Resolves #2493 and CRAFT-670. Type-checking warnings were informational and did not block the merge.
qwen3.6-35b-a3b-mtp-q6 Merged to fix metadata retrieval from the correct project directory, working around a craft-application limitation. Resolves #2493 and CRAFT-670. Type checking warnings were informational and required no action.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#3555 project: validate metadata links (CRAFT-369) snapcraft merged Merged into master after receiving two reviewer approvals and passing CI checks. The change implements project metadata link validation, adding 215 lines across four files.
74%
#2681 fix: correctly get project name for remote builds charmcraft merged Merged after three approvals. Corrects project name retrieval for remote builds, resolving #2598. Integrated despite non-blocking type-checking warnings and two unresolved review comments.
70%
#5748 fix: get the project from the project service every time snapcraft merged Merged a fix ensuring the project is retrieved from the project service on every call. Approved by two reviewers, the change modifies one file (+9/-1 lines) and resolves the retrieval logic despite one failing CI test.
70%