GitLab-CI fails with nested includes of common files

Hi folks,

I’m converting a set of repositories to use the include directive. However, I’ve run into a problem. In each source repository, I’m including a collection of files which defines the jobs I want to run, e.g.:

include:
  - project: 'codelibre/ome/ome-gitlab-ci'
    file: '/cpp-jobs.yml'
  - project: 'codelibre/ome/ome-gitlab-ci'
    file: '/doc.yml'
  - project: 'codelibre/ome/ome-gitlab-ci'
    file: '/pages.yml'

cpp-jobs.yml has:

include:
  - local: '/machines.yml'
  - local: '/scripts.yml'

and docs.yml has:

include:
  - local: '/machines.yml'
  - local: '/scripts.yml'

This indirect multiple inclusion of the same files isn’t liked by GitLab: Include {“local”:"/machines.yml"} was already included!

These are effectively library code defining common machine definitions and scripts for use by jobs with the extends keyword:

build:ubuntu-18.04:c++14-qt:
  extends:
    - .machine:ubuntu-18.04:noboost
    - .unix_cmake_build

Does anyone know if it’s possible to work around this, or is this simply not possible at present?

Thanks all,
Roger