Strange generation when COMPOSER_PATH not set

Bug #1504109 reported by Merlijn Sebrechts on 2015-10-08
This bug affects 1 person
Affects Status Importance Assigned to Milestone
charm-tools (Ubuntu)

Bug Description

Use-case: You are just starting with Charm Layers, made some layers locally (in JUJU_REPOSITORY/layers) referenced them with layer:mylayer and generate the Charm. COMPOSER_PATH is unset

What I expect: Charm compose throws an error saying "I couldn't find the layer remotely and COMPOSER_PATH is unset. Please set COMPOSER_PATH if you are referencing local layers".

What I get: Charm gets generated without errors. However, there is no hooks directory, so when deploying the Charm, you get strange errors such as "unit is not assigned to machine".

Common use-case and common error for someone who starts using charm layers so the warning should be very informative.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers