-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
charmcraft pack outputs different charm filenames depending on base/platform specification in charmcraft.yaml #2174
Comments
I think this could cause issues if you have multiple |
@PietroPasotti to clarify, is the difference when using |
Hi Pietro! Could you give me an example of the exact |
FWIW, when using the |
vs
|
I wonder if we should modify the bases->platforms conversion to match the shorthand multi-base syntax. |
I think this might be working as intended. We don't want to change the bases -> platforms conversion because that's intentionally kept the same from charmcraft 2.x, but the following platforms:
ubuntu-24.04-amd64:
build-on: [[email protected]:amd64]
build-for: [[email protected]:amd64]
ubuntu-22.04-amd64:
build-on: [[email protected]:amd64]
build-for: [[email protected]:amd64] Not sure if the current implementation accepts that input though. If it doesn't, it probably should. |
What do you mean with "it might be working as intended"? |
Bug Description
depending on whether you use the
base:
or theplatforms:
syntax in charmcraft.yaml, charmcraft will either create a[email protected]
, or afoo-ubuntu-22.04.charm
file.I believe the created files should have the same name regardless of the syntax that was used to specify them.
To Reproduce
charmcraft pack in
https://github.com/canonical/parca-scrape-target-operator
charmcraft pack in
https://github.com/canonical/parca-k8s-operator
Environment
candidate snap
charmcraft.yaml
n/a
Relevant log output
The text was updated successfully, but these errors were encountered: