You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having had a quick look at this, js-yaml refuses to parse this without a schema. Basically this is the same core issue as nodeca/js-yaml#289
I don't want to do something GitLab-specific here. If I'm going to address this, it needs to be a generic solution. Doing a bit of digging, I think I basically want to do what is described in nodeca/js-yaml#566 and create a "permissive schema", but I have not tired it out yet.
As far as I can tell, this is going to be basically impossible to do in a completely generic way. Fundamentally, I think in order to correctly write the schema extension that allows you to parse the file, you really have to already know what input file you're expecting and how to interpret the custom tags. That means every file format that uses them would have to be a special case.
It also doesn't seem possible to just ignore/pass over these.
That is unfortunate. A generic solution would be the best variant.
At least for gitlab-ci files, it is a pretty good bet, that their filenames end in .gitlab-ci.yml as most IDEs use this to identify the filetype. Maybe this is a viable abstraction, selecting the schema base von filename postfix?
A gitlab-ci file may contain the following construct to include parts of another job in the current job.
example.gitlab-ci.yml
See also the GitLab docs: https://docs.gitlab.com/ee/ci/yaml/yaml_optimization.html#reference-tags
Unfortunately this causes an error similar to:
Thanks for looking into the problem! 👍
The text was updated successfully, but these errors were encountered: