Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
[Feature Req] Exclude files from lower layers #214
Comments
|
charm build supports an 'ignores' keyword in the layers config. This is a I'm happy to discuss treating it the other way (which might be odd) or both On Mon, May 30, 2016 at 9:12 PM Charles Butler notifications@github.com
|
|
I didn't know about the ignores keyword! I did think it was excludes at some point, and that has the same effect of nothing. I feel like this was the right approach to take however, listing it in the layer.yaml - I think thats an idiomatic path for developers to look at what I'm doing with extant layers that is not otherwise defined on the filesystem (eg: overrides) I did try the ignores keyword and it doesn't seem to be doing what I expect it to be doing: includes:
- 'layer:basic'
- 'layer:tls'
- 'interface:etcd'
- 'interface:etcd-proxy'
ignores: ['Makefile', 'tests/10-tls-deploy.py', 'tests/00-setup']
repo: https://github.com/juju-solutions/layer-etcd.gitYet when i list the output directory of the assembled charm: ls etcd/tests
00-setup 10-tls-deploy.py 20-deploy tests.yaml |
|
The key is |
chuckbutler commentedMay 31, 2016
•
Edited 1 time
-
chuckbutler
May 31, 2016
Checklist
What version am I running?
I ran the following command:
charm versionand got the following ouput:I am using: Ubuntu 16.04
Issue/Feature
The ability to exclude files without overriding them in the top most layer. Some layers include singleton style tests (in amulet style) and the layers assume they can be built as their own stand alone entity. I don't always want to include these tests in my final output charm, as there are other tests flexing the capability, so including them is actually burdensome as it only extends the testing time.
A prime example case would be where i use a tests.yaml in my top most layer, and a lower layer includes a 00-setup. Or i'm testing a tis-terminated endpoint which is flexing the tls layer, meanwhile the tis-layer includes simple CA/Server certificate verification as a stand-alone test.