Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sanderploegsma opened this issue Jan 20, 2024 · 0 comments
Open

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

sanderploegsma opened this issue Jan 20, 2024 · 0 comments

Comments

@sanderploegsma
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant