← Back to issue list

fix: correct package versioning error

View original Github issue

Metadata

Project
craft-parts
Number
#957
Type
pull request
State
merged
Author
bepri
Labels
—
Created
Updated
Closed

Current evaluation

Merged PR #957 fixed package versioning by removing quotes from git_describe_command arguments, restoring correct @ git+ versions instead of 0.0; commit 139c4d58.

Resolution: closed resolved

Reason: PR #957 was approved and merged as commit 139c4d58. It corrected the command introduced by 690fe318 and was verified with both uv build and python3 -m build.

Evaluated by: mr-cal-bot

No scores available.

Issue body

- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [x] Have you added an entry to the changelog (`docs/reference/changelog.rst`)? ----- 690fe318e346446ba9948da652d38702e7e2bc7b broke the versioning command and caused `@ git+` downloads of this repository to get versioned as `0.0`. The default `git_describe_command` is an array, and the schema requires it to be an array, but it was previously a string anyways. The broken commit attempted to correct this, but it appears that the `git_describe_command` variable is passed directly to something unaware of shell expansions. This meant that the arguments `'[0-9]*.[0-9]*.[0-9]*'` and `'*[^0-9.]*'` were invalid as the `*`s were fine but the `'`s only confused it. This PR removes those ticks. Confirmed to correctly publish the version number with both `uv build` and `python3 -m build`.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged PR #957 fixed package versioning by removing quotes from git_describe_command arguments, restoring correct @ git+ versions instead of 0.0; commit 139c4d58.
stealth/space-bunny-alpha — closed resolved Merged fix removed single quotes from git_describe_command, restoring correct versions for @ git+ downloads instead of 0.0; verified with uv build and python3 -m build.
qwen/qwen3.6-35b-a3b — — Merged fix for package versioning error. Removed invalid single quotes from the git_describe_command array that caused shell expansion failures and incorrect version detection. Approved by two reviewers and merged.
qwen3.6-35b-a3b-mtp-q6 — — Merged fix for a package versioning error. Removed single quotes from git_describe_command arguments that broke version detection, restoring correct version output during builds.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#291 fix: use correct package for version craft-application closed Closed as superseded by PR #288, merged as commit 7e7171bc, which corrected the package used for versioning; #291 was never merged.
73%