parser - Handle project name and version variables
Metadata
Current evaluation
Merged. Replaces $SNAPCRAFT_PROJECT_VERSION and $SNAPCRAFT_PROJECT_NAME with values from the origin snapcraft.yaml in remote parts, addressing LP:#1619418. Changes span 4 files with 86 additions and 27 deletions.
Suggested action: —
No scores available.
Issue body
Replace $SNAPCRAFT_PROJECT_VERSION and $SNAPCRAFT_PROJECT_NAME
with their respective values from the origin's snapcraft.yaml
in remote parts definitions.
LP:#1619418
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged. Replaces $SNAPCRAFT_PROJECT_VERSION and $SNAPCRAFT_PROJECT_NAME with values from the origin snapcraft.yaml in remote parts, addressing LP:#1619418. Changes span 4 files with 86 additions and 27 deletions. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged by maintainer after retest request. Replaces $SNAPCRAFT_PROJECT_VERSION and $SNAPCRAFT_PROJECT_NAME placeholders with actual values from snapcraft.yaml in remote parts, resolving LP:#1619418. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged by josepht to replace $SNAPCRAFT_PROJECT_VERSION and $SNAPCRAFT_PROJECT_NAME with actual values from snapcraft.yaml in remote parts, resolving LP:#1619418 after a retest request. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1619418 parser needs to replace project level variables | snapcraft (launchpad) | closed | Closed without resolution. The parser was expected to replace SNAPCRAFT_PROJECT_NAME and SNAPCRAFT_PROJECT_VERSION with project name and version values, but the request was abandoned or superseded by later updates. | |
| #1141 parser: use the project loader code to find the origin's snapcraft.yaml | snapcraft | merged | Merged a refactor replacing custom snapcraft.yaml detection with existing project_loader code, resolving LP bug #1665007. The author addressed reviewer feedback on commit formatting and conventions before final approval. | |
| #1766878 $SNAPCRAFT_PROJECT_NAME used in a remote part expands to wrong value | snapcraft (launchpad) | open | Bug report: $SNAPCRAFT_PROJECT_NAME in a remote part expands to the remote part's own name (e.g. alsa) instead of the consuming snap's name. Unlabelled, zero comments, no maintainer interaction, inactive ~2.3 years. | |
| #302 parts: add project-specific global variables | rockcraft | merged | Merged implementation adding project-specific global variables (name and version) via a prologue callback, following Snapcraft. Closes #299. Approved by two reviewers with passing CI. Refactors tests and modifies nine files. | |
| #4702 [craft-application/core24] $SNAPCRAFT_PROJECT_VERSION and other fields not replaced | snapcraft | closed | Resolved via PR #4757. The core24 variable replacement failure was fixed, though CRAFT_PROJECT_NAME and CRAFT_PROJECT_VERSION remain unevaluated and are tracked separately in craft-application#320. | |
| #1923835 $SNAPCRAFT_PROJECT_VERSION isn't working for source once set via snapcraftctl | snapcraft (launchpad) | closed | The bug where $SNAPCRAFT_PROJECT_VERSION fails to propagate in source fields after snapcraftctl set-version was closed without resolution or comments, indicating the report was abandoned. |