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

fix: correct source mapping in varfiles #6870

Merged
merged 2 commits into from
Feb 20, 2025
Merged

Conversation

stefreak
Copy link
Member

@stefreak stefreak commented Feb 20, 2025

What this PR does / why we need it:
Ensures that template error messages in YAML varfiles will be correct

Which issue(s) this PR fixes:

Correction for error behaviour for the changes in #6844

Ensures that template error messages in YAML varfiles will be correct
@stefreak stefreak requested a review from thsig February 20, 2025 18:01
thsig
thsig previously approved these changes Feb 20, 2025
const loaded = await loadAndValidateYaml({
content: fileContents.toString("utf-8"),
filename: resolvedPath,
version: "1.2",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we are using a different yaml parsing library here than before; It looks like the version of js-yaml we were using for varfiles also used YAML 1.2

@stefreak stefreak enabled auto-merge February 20, 2025 18:07
@stefreak stefreak added this pull request to the merge queue Feb 20, 2025
Merged via the queue into main with commit 994d78f Feb 20, 2025
40 checks passed
@stefreak stefreak deleted the varfile-source-mapping branch February 20, 2025 19:22
@stefreak stefreak mentioned this pull request Feb 21, 2025
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

Successfully merging this pull request may close these issues.

2 participants