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

The libucl .include macro fails strip the file extension from all but first included file #310

Open
Crest opened this issue Aug 23, 2024 · 1 comment

Comments

@Crest
Copy link

Crest commented Aug 23, 2024

The .include(glob=true, prefix=true) "config.d/*.conf" macro only strips the .conf (or .ucl) suffix from the first file matching the config.d/*.conf" pattern. Given files named config.d/blah.conf and config.d/blub.conf it results in the objects blah (suffix correctly stripped) blub.conf (suffix incorrectly retained).

@Crest
Copy link
Author

Crest commented Aug 23, 2024

Not a bug, related: it would be useful to make the array of suffixes a parameter with the old default value ['.conf', '.ucl'] as default value. Given an empty array the macro should disable suffix stripping instead of using the default value.

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