Skip to content

Rename charm artifact inline when rename.sh is missing#377

Open
xtrusia wants to merge 1 commit intocanonical:mainfrom
xtrusia:charm-rename-fallback
Open

Rename charm artifact inline when rename.sh is missing#377
xtrusia wants to merge 1 commit intocanonical:mainfrom
xtrusia:charm-rename-fallback

Conversation

@xtrusia
Copy link
Copy Markdown
Contributor

@xtrusia xtrusia commented Apr 22, 2026

Some charm repos no longer ship a rename.sh helper(although it is in master (in progress), I think it's test suite's responsibility), so the build step leaves the artifact named ${charm}_${arch}.charm.
The test phase and bundle references expect the canonical ${charm}.charm.
Do the rename inline after build (local or --remote-build) when rename.sh is absent, mirroring what rename.sh would have done.

e.g https://review.opendev.org/c/openstack/charm-heat/+/985457

Some charm repos no longer ship a rename.sh helper, so the build step
leaves the artifact named ${charm}_${arch}.charm. The test phase and
bundle references expect the canonical ${charm}.charm. Do the rename
inline after build (local or --remote-build) when rename.sh is absent,
mirroring what rename.sh would have done.

Signed-off-by: Seyeong Kim <seyeong.kim@canonical.com>
Copy link
Copy Markdown
Member

@pponnuvel pponnuvel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants