compose not including lib in/from base layer

Bug #1500219 reported by Charles Butler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juju Charm Tools
Fix Committed
Undecided
Benjamin Saller

Bug Description

The following line is included in the base layer when composing a charm inhereting from layer: base

import sys
sys.path.append('lib')

However the lib directory doesn't appear to be constructed properly when composing

 ls ../composed/trusty/test
composer.yaml copyright hooks Makefile metadata.yaml reactive README.md requirements.txt tox.ini

to reproduce generate a composer.yaml with the following contents:

includes: ['layer:basic']

and a metadata.yaml with the following contents:

name: test
summary: test
maintainers:
    - test <email address hidden>
description: na
tags:
  - layer
subordinate: false

Tested on charm-tools 1.6.1 as well as TRUNK from the charm-tools bzr repository

Possible relevant output:

(.venv)charles@xps13:~/projects/work/layers/composed/trusty/test$ charm inspect
Inspect test
# layer:basic
# test
# composer

/home/charles/projects/work/layers/composed/trusty/test
 ├─── .composer.manifest
 ├─── .gitignore
 ├─── Makefile
 ├─── README.md
 ├─── composer.yaml
 ├─── copyright
 └─── hooks
     ├─── config-changed
     ├─── install
     ├─── start
     └─── stop
 ├─── metadata.yaml
 └─── reactive
     └─── __init__.py
 ├─── requirements.txt

Tags: compose

Related branches

Revision history for this message
Charles Butler (lazypower) wrote :
tags: added: compose
Revision history for this message
Benjamin Saller (bcsaller) wrote :

This has a verified fix in the related branch

Changed in charm-tools:
assignee: nobody → Benjamin Saller (bcsaller)
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.