Stop makefile from calling linkml validate with nonexistent config files #91
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
inm7/inm7-concepts!91
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "make-invalid-wildcard"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The checkvalidation (checkvalid / checkinvalid) target in the makefile globs for
*(in)valid.cfg.yamlfiles. While #90 excluded checkinvalid from checkvalidation, this stops the (checkvalid / checkinvalid) targets from callinglinkml validatewhen no files match the pattern instead.Previously, if there were no *.invalid.cfg.yaml files, we still made it into the
@for ex in $</*invalid.cfg.yamlloop (same for*valid) -- but with the glob expression verbatim, producing errors like this:"Invalid value for '--config': File 'src/flat-data/unreleased/validation/*.invalid.cfg.yaml' does not exist."
It seems that make's wildcard function avoids the pitfall, while correctly expanding the globs when files are present.
make-invalid-wildcardto Stop makefile from calling linkml validate with nonexistent config filesIt would make sense to direct this PR to the datalad-concepts repo. This is the model source for all downstream efforts, whereas this is just one of the downstream usages.
@mih wrote in #91 (comment):
Thanks, opened https://github.com/psychoinformatics-de/datalad-concepts/pull/318 now.
I'll merge this PR, too. Thanks for the companion PR!