T
Task2mo ago
sedyh

Glob patterns in generates

Hello. According to the docs, both sources and generates can be glob patterns.
recipe:
sources:
- internal/**/*.templ
generates:
- internal/**/*_templ.go
cmd:
- echo "done"
recipe:
sources:
- internal/**/*.templ
generates:
- internal/**/*_templ.go
cmd:
- echo "done"
For some reason, task tried to create the file from the path under generates on windows under mingw...
CreateFile C:/user/project/internal/**/*_templ.go: The filename, directory name, or volume label syntax is incorrect.
CreateFile C:/user/project/internal/**/*_templ.go: The filename, directory name, or volume label syntax is incorrect.
Running failed command with -f suddenly solves it, but that looked very strange.
1 Reply
andreynering
andreynering2mo ago
Hi @sedyh, I don't know what happened. If you manage to create a simple repository that reproduces the problem, I suggest you to open an issue linking it and also specifying or environment and Task version.

Did you find this page helpful?