Open cjwatson opened 7 years ago
(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 ~
/ %7E
encoding. This is probably a bug in git.launchpad.net that I should investigate, but is of course irrelevant to this issue.)
Checklist
What version am I running?
I ran the following command:
charm version
and got the following ouput:I am using: Ubuntu 16.04 LTS
Issue
The
ignore
tactic 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 thebin
directory to stop being ignored. I expected my ignores to be effective for all base layers, as documented.Here's a non-reduced example. https://github.com/canonical-ols/build.snapcraft.io/commit/b9a8a26720618f78671c304acb00b400e9734c61 resulted in https://git.launchpad.net/~ubuntuone-hackers/build.snapcraft.io/+git/builds/commit/?id=afab79320c046d6978abdacc703244139897e302 when built. Notice how
actions.yaml
andactions/migrate
have popped into existence fromlayer:ols-pg
, despite being listed inignore
.This is probably the cause of #301.