← Back to issue list

parts: expand CRAFT_PROJECT_VERSION and CRAFT_PROJECT_GRADE

View original Github issue

Metadata

Project
snapcraft
Number
#3753
Type
pull request
State
closed
Author
mr-cal
Labels
Created
Updated
Closed

Current evaluation

Closed by author after reviewer recommended using craftctl get version and craftctl get grade instead. The proposed variable expansion was abandoned, with SNAPCRAFT_* variables retained for compatibility.

Suggested action:

No scores available.

Issue body

- [X] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [X] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [x] Have you successfully run `make lint`? - [X] Have you successfully run `pytest tests/unit`? ----- `SNAPCRAFT_PROJECT_VERSION` and `SNAPCRAFT_PROJECT_GRADE` are the only 2 variables that weren't available with the `CRAFT_` prefix. They aren't being passed to `craft-parts`, so I'm resolving them in `snapcraft`. I would like to know what @cmatsuoka thinks.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Closed by author after reviewer recommended using craftctl get version and craftctl get grade instead. The proposed variable expansion was abandoned, with SNAPCRAFT_* variables retained for compatibility.
qwen3.6-35b-a3b-mtp-q6 Closed without merging. The author abandoned the PR after a reviewer recommended using craftctl get version and craftctl get grade instead. The SNAPCRAFT variables remain for compatibility, but direct expansion in parts was rejected.
qwen3.6-35b-a3b-mtp-q6 Closed without merging. Maintainers recommend using craftctl get version and craftctl get grade instead of expanding CRAFT_PROJECT_VERSION and CRAFT_PROJECT_GRADE in the parts processor, preserving SNAPCRAFT_* variables for compatibility.

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.
71%