$ gitlab-ci-local --list
name description stage when allow_failure needs
Foo test on_success false
I think the issue is the way excludedGlobs is built up when encountering include (since this means the file is ignored the second time the include is encountered).
I was testing out the changes from #1115, but it looks like you cannot include the same file multiple times, even though it might be desirable.
Minimal .gitlab-ci.yml illustrating the issue
Given the following
template.gitlab-ci.yml
The following
.gitlab-ci.yml
works as expectedBut the following
.gitlab-ci.yml
only showsFoo
, but there should be bothFoo
andBar
.I think the issue is the way
excludedGlobs
is built up when encounteringinclude
(since this means the file is ignored the second time the include is encountered).https://github.com/firecow/gitlab-ci-local/blob/0e3602b530bbad48c96006f589022095ae6b58a6/src/parser-includes.ts#L72-L77