exercism / configlet

The official tool for managing Exercism language track repositories.
https://exercism.org/docs/building/configlet
GNU Affero General Public License v3.0
22 stars 14 forks source link

create: `invalidator` not set in generated `.meta/config.json` #859

Open sanderploegsma opened 8 months ago

sanderploegsma commented 8 months ago

I was playing around with configlet create and noticed that the generated .meta/config.json does not contain the invalidator property, even though it's set in the files object of the track's config.json:

Track config:

{
  "files": {
    "solution": [
      "src/main/java/%{pascal_slug}.java"
    ],
    "test": [
      "src/test/java/%{pascal_slug}Test.java"
    ],
    "example": [
      ".meta/src/reference/java/%{pascal_slug}.java"
    ],
    "exemplar": [
      ".meta/src/reference/java/%{pascal_slug}.java"
    ],
    "invalidator": [
      "build.gradle"
    ]
  }
}

Command:

bin/configlet create --concept-exercise foobar

Generated .meta/config.json:

{
  "authors": [],
  "files": {
    "solution": [
      "src/main/java/Foobar.java"
    ],
    "test": [
      "src/test/java/FoobarTest.java"
    ],
    "exemplar": [
      ".meta/src/reference/java/Foobar.java"
    ]
  },
  "blurb": ""
}

Interestingly enough, it does create the build.gradle file itself.