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

breaking(build_charms_with_cache.yaml): Add workaround for charmcraft 2.5 #110

Merged
merged 4 commits into from
Dec 1, 2023

Conversation

carlcsaposs-canonical
Copy link
Contributor

@carlcsaposs-canonical carlcsaposs-canonical commented Dec 1, 2023

charmcraft 2.5's new caching implementation breaks this workflow. We plan to migrate to the new caching system, but are blocked by this bug: canonical/charmcraft#1374. In the meantime, we can hack charmcraft 2.5's new caching system into the old caching system

Migration required for breaking change:

  • old caches need to be deleted
  • tox build environments (that wrap charmcraft pack) need to add CRAFT_SHARED_CACHE to pass_env

… 2.5

charmcraft 2.5's new caching implementation breaks this workflow. We plan to migrate to the new caching system, but are blocked by this bug: canonical/charmcraft#1374. In the meantime, we can hack charmcraft 2.5's new caching system into the old caching system

Migration required from breaking change:
- old caches need to be deleted
- tox `build` environments (that wrap `charmcraft pack`) need to add `CRAFT_SHARED_CACHE` to pass_env
@carlcsaposs-canonical
Copy link
Contributor Author

tested on canonical/mysql-router-k8s-operator#171

@carlcsaposs-canonical carlcsaposs-canonical merged commit 450cba3 into main Dec 1, 2023
1 check passed
@carlcsaposs-canonical carlcsaposs-canonical deleted the charmcraft-2.5-workaround branch December 1, 2023 13:47
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.

None yet

4 participants