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

Adding charm X while cwd is X is tricky #173

Open
simonklb opened this issue Feb 16, 2017 · 0 comments
Open

Adding charm X while cwd is X is tricky #173

simonklb opened this issue Feb 16, 2017 · 0 comments

Comments

@simonklb
Copy link

Had to dig through the code a bit before finding out what was happening.

In deployer the name of the directory you're in becomes the default charm name that is looked up when determining the charm path. In my case my cwd was /home/ubuntu and I was trying to add the Ubuntu charm to my Amulet test. But every time I was running the test I ended up with Exception: Charm not found.

The reason was that it was trying to lookup the charm as a local charm rather than from the charmstore due to https://github.com/juju/amulet/blob/master/amulet/charm.py#L54 and then https://github.com/juju/amulet/blob/master/amulet/charm.py#L39.

Fixed it by setting the JUJU_TEST_CHARM environment variable, but it wasn't very obvious from the get go what was going on.

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

No branches or pull requests

1 participant