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

Fixes #4275: Cannot run Yaml validator multiple times #4276

Merged
merged 2 commits into from
Nov 5, 2020

Conversation

hkorik
Copy link
Contributor

@hkorik hkorik commented Nov 4, 2020

Motivation

Fixes #4275

Proposed changes

Use this reset parameter for the Yaml validator so that subsequent runs don't contaminate each other.

Testing steps

Follow steps in #4275 . Verify that only the first Yaml error is reported.

Steps to verify the solution

Same as above, but verify that errors in both files are reported all ten times.

An upstream issue (symfony/symfony#8871) indicates this is a common problem and offers alternative solutions, but this one is what has been implemented for the TwigCommand and in addition has been already implemented in v10.x.

@danepowell
Copy link
Contributor

Thanks a lot for the PR!

@danepowell danepowell added 12.x Affects or applies to 12.x Bug Something isn't working labels Nov 5, 2020
@danepowell danepowell merged commit 7663ccc into acquia:12.x Nov 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
12.x Affects or applies to 12.x Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot run Yaml validator multiple times
2 participants