Skip to content
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

part build-snaps channel change doesn't work without a clean #496

Open
jugmac00 opened this issue Jun 21, 2023 · 1 comment
Open

part build-snaps channel change doesn't work without a clean #496

jugmac00 opened this issue Jun 21, 2023 · 1 comment
Labels
Bug Something isn't working

Comments

@jugmac00
Copy link
Member

Bug Description

In my charmcraft.yaml file I updated the charm version via the build-snaps directive, and then a charmcraft pack but the changes were not reflected, ie no new charm version was installed.

Only when I ran charmcraft clean and another charmcraft pack it worked as intended and used the new charm version from the charmcraft.yaml configuration.

To Reproduce

  • create a simple charmcraft.yaml with e.g. build-snaps: [charm/2.x/stable]
  • run charmcraft pack (which creates a container)
  • update charmcraft.yaml to build-snaps: [charm]
  • run charmcraft pack
  • the new charm version is not used

(I noticed that as I added an option which is only available with the new charm version).

Environment

  • Ubuntu 20.04
  • charmcraft -> version 2.3.0
  • using lxd containers

charmcraft.yaml

see above

Relevant log output

none
@jugmac00 jugmac00 added the Bug Something isn't working label Jun 21, 2023
@lengau
Copy link
Contributor

lengau commented Jul 13, 2023

Thanks for this report! This sounds like a bug in the craft-parts library so I'm going to transfer it over there and make a related bug for charmcraft to get the hotfix included

Relevant info: charmcraft 2.3.0 is using craft-parts 1.19.3

@lengau lengau changed the title charmcraft pack does not recognize updated charmcraft.yaml file part build-snaps channel change doesn't work without a clean Jul 13, 2023
@lengau lengau transferred this issue from canonical/charmcraft Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants