.pyc files caused update-charm to fail with merge conflicts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
High
|
William Reade |
Bug Description
When Python scripts are run, they are compiled and persist as .pyc files. These files can cause charm updates to barf if directories are moved around, and maybe in other situations too.
2013/06/14 13:23:44 ERROR worker/
path: /var/lib/
args: []string{"pull", "/var/lib/
From /var/lib/
* branch HEAD -> FETCH_HEAD
CONFLICT (modify/delete): charmhelpers/
CONFLICT (modify/delete): charmhelpers/
CONFLICT (modify/delete): charmhelpers/
Auto-merging charm-helpers/
Auto-merging charm-helpers/
Automatic merge failed; fix conflicts and then commit the result.
tags: |
added: docs removed: doc |
tags: | added: canonical-is |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
I think the sequence here was:
deploy
mv charmhelpers charm-helpers
charm-update
The charm-update failed as the charmhelpers directory contained files not under revision control, blocking the directory rename being merged.
The same failure should be possible with any files not under version control, such as any charm state being created and stored in the charm directory.