gitlabci/gitlabci-include does not honor ignorePaths #28430
Replies: 2 comments
-
Hi there, Get your discussion fixed faster by creating a minimal reproduction. This means a repository dedicated to reproducing this issue with the minimal dependencies and config possible. Before we start working on your issue we need to know exactly what's causing the current behavior. A minimal reproduction helps us with this. Discussions without reproductions are less likely to be converted to Issues. To get started, please read our guide on creating a minimal reproduction. Good luck, The Renovate team |
Beta Was this translation helpful? Give feedback.
-
This is "by design" but not a good design. Please provide a minimal reproduction and we'll convert this to an issue to fix later |
Beta Was this translation helpful? Give feedback.
-
What would you like help with?
I think I found a bug
How are you running Renovate?
Self-hosted
If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.
GitLab, 37.279.0
Please tell us more about your question or problem
Hi,
We have a tool that generates a bunch of package files. Including:
docker-compose.yml
Those package files and the corresponding updates are maintained in the source of that tool.
So we want Renovate to ignore those package files in other repos.
For that, we use the following:
Expected Result
smartshape/env/prod/target/docker-compose/docker-compose.yml
is ignoredsmartshape/env/prod/target/docker-compose/gitlab-ci/.gitlab-ci.yml
is ignoredsmartshape/env/prod/target/docker-compose/gitlab-ci/SmartShape.gitlab-ci.yml
is ignoredActual Result
smartshape/env/prod/target/docker-compose/docker-compose.yml
is ignoredsmartshape/env/prod/target/docker-compose/gitlab-ci/.gitlab-ci.yml
is ignoredsmartshape/env/prod/target/docker-compose/gitlab-ci/SmartShape.gitlab-ci.yml
is not ignoredI think the problems come from the fact that:
/.gitlab-ci-yml
includes/smartshape/env/prod/target/docker-compose/gitlab-ci/.gitlab-ci.yml
, which includes/smartshape/env/prod/target/docker-compose/gitlab-ci/SmartShape.gitlab-ci.yml
/.gitlab-ci-yml
/smartshape/env/prod/target/docker-compose/gitlab-ci/.gitlab-ci.yml
/smartshape/env/prod/target/docker-compose/gitlab-ci/SmartShape.gitlab-ci.yml
ignorePaths
is not taken into account when evaluating GitLab CI includesIt is also worth noting the unwanted file is somehow detected as a
gitlabci
dependency, instead of agitlabci-include
dependency:Logs (if relevant)
No response
Beta Was this translation helpful? Give feedback.
All reactions