release: 0.41.2#162
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release 0.41.2
Patch release bumping
avocado-clifrom 0.41.1 to 0.41.2.Changes
ext package: bake the resolved extension version into the publishedavocado.yaml(#161)The in-source program extensions template
version: '{{ env.AVOCADO_EXT_VERSION }}'so the packaged version tracksCargo.toml, but that env only exists at package time. The literal template survived into the RPM payload, so a downstream runtime build (noAVOCADO_EXT_VERSIONin scope) interpolated it to''and failed semver validation.ext packagenow resolves and bakes the concrete semver into the shipped config while leaving every other template ({{ avocado.target }}, etc.) for the consumer to resolve at build time.The bake is robust to how the version is actually resolved (from the merged config):
avocado-bsp-{{ avocado.target }}) are matched the same wayfind_ext_in_mappingresolves them — direct key, then{{ avocado.target }}interpolation — instead of a literal compare that would hard-fail.target-<name>:override block no longer aborts the package: a concrete baseversion:is inserted, andversion:insidetarget-*/kernel-*override blocks is baked too, so no template survives to interpolate to''downstream. Deeperpackages.*.versionis left untouched..ymlconfigs stage and bake under their real on-disk name rather than a hardcodedavocado.yaml.The bake helper lives in
utils/config_edit.rsalongside the other comment-preservingavocado.yamleditors, with unit coverage for the template-key, nested-version, multi-extension, and target-block cases.Verification
cargo fmt --check,cargo clippy --all-targets --all-features -- -D warnings, andcargo testall green.