Skip to content

Using wildcards with pdk set config project.validate.ignore is adding only the first match #1436

Description

@Scirelgar

Describe the bug
The command pdk set config project.validate.ignore [A_PATTERN] only adds the first match to the pdk.yaml file.

To Reproduce
Simply executing the above command with a valid pattern like so

> pdk set config project.validate.ignore "site/profile/files/**/*.pp"
pdk (INFO): Added new value 'site/profile/files/efa/efa.pp' to 'project.validate.ignore'
project.validate.ignore=["site/profile/files/efa/efa.pp"]
> pdk set config project.validate.ignore "site/profile/files/*"     
pdk (INFO): Added new value 'site/profile/files/accounts' to 'project.validate.ignore'
project.validate.ignore=["site/profile/files/efa/efa.pp", "site/profile/files/accounts"]

When there are other files/directories matching the pattern:

Image

Expected behavior
What's described in the documentation

Additional context

  • Used Chocolatey to install PDK
  • PDK version : 3.4.0
  • Win11

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions