Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
'ignore' only ignores files from next layer, not any base layers #312
Comments
cjwatson
commented
Mar 14, 2017
|
(The git.launchpad.net link there may 404, but should work if you then press Enter in the location bar; it's something to do with |
johnsca
added
the
charm-build
label
Nov 2, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cjwatson commentedMar 14, 2017
Checklist
What version am I running?
I ran the following command:
charm versionand got the following ouput:I am using: Ubuntu 16.04 LTS
Issue
The
ignoretactic is documented as follows in the docstring ofIgnoreTactic:However, this is not what I observe in practice: it in fact only ignores files provided by the immediate next layer. Here's a reduced test case:
Notice that the only interesting change in the second case here is the addition of
layer:snap, and yet this caused thebindirectory to stop being ignored. I expected my ignores to be effective for all base layers, as documented.Here's a non-reduced example. canonical-websites/build.snapcraft.io@b9a8a26 resulted in https://git.launchpad.net/~ubuntuone-hackers/build.snapcraft.io/+git/builds/commit/?id=afab79320c046d6978abdacc703244139897e302 when built. Notice how
actions.yamlandactions/migratehave popped into existence fromlayer:ols-pg, despite being listed inignore.This is probably the cause of #301.