Fields filled in by adopt-info are not picked up later
Metadata
Current evaluation
Fixed by merged PR #892 (commit 52e2ead1): Lifecycle no longer caches the project, preserving fields populated by adopt-info for later steps.
Resolution: closed resolved
Reason: PR #892 was merged as commit 52e2ead1, removing lifecycle project caching so values populated by adopt-info, including version, remain available when craftctl runs.
Evaluated by: mr-cal-bot
No scores available.
Issue body
### Bug Description
Certain fields, such as `version`, appear to not be written to the project model at run-time, causing errors like "`version cannot be None`".
### To Reproduce
Build any artifact with `adopt-info` and attempt to set the version using craftctl.
### part yaml
```shell
```
### Relevant log output
```shell
https://github.com/canonical/snapcraft/actions/runs/17467279191/job/49606946759?pr=5746
```
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged PR #892 (commit 52e2ead1): Lifecycle no longer caches the project, preserving fields populated by adopt-info for later steps. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed by canonical/craft-application#892, merged as commit 52e2ead1, which stopped the lifecycle from caching the project and preserved runtime fields populated by adopt-info. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed the missing adopt-info fields and runtime version error by removing lifecycle project caching; canonical/craft-application PR #892 was merged. | |
| stealth/space-bunny-alpha | — | closed resolved | adopt-info fields such as version were lost because the project was cached. Fixed by merged craft-application#892 (52e2ead1), which stops lifecycle project caching. | |
| qwen/qwen3.6-35b-a3b | — | — | Fixed a bug where fields populated by adopt-info were not picked up at runtime. Resolved via canonical/craft-application pull request 892. | |
| qwen/qwen3.6-35b-a3b | — | — | The adopt-info field persistence bug has been fixed. The resolution was merged in pull request #892 of the canonical/craft-application repository. | |
| qwen/qwen3.6-35b-a3b | — | — | Bug fixed in craft-application PR #892. Fields populated by adopt-info, such as version, were not persisting to the project model at runtime, causing None errors. The issue is resolved. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
canonical/craft-application#892
(confidence 100%)
Merged fix titled "fix(Lifecycle): don't cache the project" in commit 52e2ead1.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #3693 projects: adoptable fields are optional if adopt-info used | snapcraft | merged | PR #3693 merged into snapcraft/7.0 (merge d9b4f700f, feature commit 0b05dbfc2) for CRAFT-1031, making version/summary/description/grade optional when adopt-info is set, with errors still raised if values are never adopted. |