Skip to content

Asset Bundles Sync Include/Exclude Precedence #817

@danricbede

Description

@danricbede

We have custom yaml configuration files for each environment. Our local directory looks as follows:

- config
  - target-a
    - config.yml
  - target-b
    - config.yml

I was hoping to be able to use the include/exclude items to only sync the directory for the active target. For example, given a deployment to target-a, I'd want the workspace to look as follows:

- config
  - target-a
    - config.yml

It seems that the wildcards for the exclude override the explicit include - as this doesn't work:

sync:
  include:
    - "config/${bundle.target}/*"
  exclude:
    - "config/*/*"

But I can achieve the opposite by doing:

sync:
  include:
    - "config/*"
  exclude:
    - "config/${bundle.target}/*"

I can't seem to find a way to achieve the desired behaviour. Only things I can think of would be changing the precedence behaviour according to order in which they're defined, or supporting a not operator. Hopefully I'm just missing something - in general DABs look super powerful.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions