-
Notifications
You must be signed in to change notification settings - Fork 177
Fixes undefined vars becoming null and erroring in conditions #1356
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
Conversation
lgtm, thanks can help to update the test cases so that we can have regression test https://github.com/firecow/gitlab-ci-local/blob/master/tests/rules-regex.test.ts#L74 |
since your changes had failed the regression test. and our implementation can be a little convoluted.... i hijacked your mr and pushed directly into your branch, hope you're ok with it |
I don't mind at all thank you! Something with my docker setup is causing a lot of tests to fail that I still need to investigate :/ |
When running the following
The following error occurs
I suspect this happens on a yml that contains
which expands to the following:
With the problematic line being
This can be avoided by defining the variable to be empty, however the proposed solution is likely more future proof.