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

When doing directory recurse it scans all files for {{ instead of just yaml or yml or tpl files #75

Open
peturparkur-fbn opened this issue May 22, 2024 · 3 comments

Comments

@peturparkur-fbn
Copy link

Ran

uav merge -d . -p <concourse_wrapper.yml> -o <pipeline.yml>

where the current directory contained both <x>.tpl.yaml files and .cs files.
uav return the follow FATAL error
FATA[0000]: template <csharp_file>.cs:: Unexpected "{" in command

On that line of the csharp file I was using string interpolation such as

x = $"{{json_key: {value}}}";
Copy link

Hello and welcome to finbourne/uav!

@mhowell24
Copy link
Contributor

hmm, that is rather annoying. Out of interest is there any reason you need your pipeline tpl/yaml files to be in the same directory as your csharp code?

@AndrewNeudegg what do you think about filtering the files for .tpl / .yaml extension?

@peturparkur-fbn
Copy link
Author

There is no particular reason.
We went around it by moving files around to avoid the issue above, so it's not critical.
Wanted to highlight it nonetheless because it seemed unintuitive that it looked at all the files, instead of just a handful of extensions.

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

2 participants