Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is there a way with juju commands to clear the juju charm cache for a particular charm from a running bootstrap node?

I'm writing a charm and for during development when I've made changes to a charm but don't commit a revision update I want to be able to iterate quicker.

share|improve this question

1 Answer

up vote 4 down vote accepted

You can use the -u option to juju deploy to speed iteration during development of your charms:

  -u, --upgrade         Deploy the charm on disk, increments revision if
                        needed

e.g.,

juju deploy -u charm-name
share|improve this answer
Does this actually force juju's charm cache to clear itself? For example, I tried the -u switch after rewriting a charm and resetting its revision 0. Juju kept using its cached version and would not take my new version from disk. – mars Mar 29 at 15:53
It doesn't clear the cache, but it should force the updated version to be deployed... – sarnold Apr 3 at 4:41

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.