-
-
Notifications
You must be signed in to change notification settings - Fork 647
Failed to parse unquoted string in mapping value containing ?
#2294
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
Comments
+1 Would appreciate if this could be addressed. Some of our pnpm based projects would be unblocked if this were addressed. |
@mikefarah have you had a chance to look at this one? |
Analyzed the issue in yq and the root of the issue is actually the yaml parsing library: https://github.com/go-yaml/yaml However go-yaml is not maintained from 3 years, so chances of a fix there are low. yq has a ticket to migrate to https://github.com/goccy/go-yaml here: #2298 Thus this issue seems to be blocked by: #2298 Is anyone working on #2298? This issue is also blocking: aspect-build/rules_js#2100 |
…goccy/go-yaml https://github.com/go-yaml/yaml has several issues pending and it appers that it is no longer maintained. e.g.: mikefarah/yq#2294 The general recommendation is to switch to a more maintained YAML parser implementation. CHANGELOG: - [ ] Switch to https://github.com/goccy/go-yaml since it is maintained
…goccy/go-yaml https://github.com/go-yaml/yaml has several issues pending and it appers that it is no longer maintained. e.g.: mikefarah/yq#2294 The general recommendation is to switch to a more maintained YAML parser implementation. CHANGELOG: - [ ] Switch to https://github.com/goccy/go-yaml since it is maintained
…goccy/go-yaml https://github.com/go-yaml/yaml has several issues pending and it appers that it is no longer maintained. e.g.: mikefarah/yq#2294 The general recommendation is to switch to a more maintained YAML parser implementation. CHANGELOG: - [ ] Switch to https://github.com/goccy/go-yaml since it is maintained
…goccy/go-yaml https://github.com/go-yaml/yaml has several issues pending and it appers that it is no longer maintained. e.g.: mikefarah/yq#2294 The general recommendation is to switch to a more maintained YAML parser implementation. CHANGELOG: - [ ] Switch to https://github.com/goccy/go-yaml since it is maintained
…goccy/go-yaml (#151) https://github.com/go-yaml/yaml has several issues pending and it appers that it is no longer maintained. e.g.: mikefarah/yq#2294 The general recommendation is to switch to a more maintained YAML parser implementation. CHANGELOG: - [ ] Switch to https://github.com/goccy/go-yaml since it is maintained
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
A clear and concise description of what the bug is.
Note that any how to questions should be posted in the discussion board and not raised as an issue.
Version of yq: 4.45.1
Operating system: mac
Installed via: docker/binary release/homebrew/snap/...
Input Yaml
Concise yaml document(s) (as simple as possible to show the bug, please keep it to 10 lines or less)
data1.yml:
data2.yml:
Command
The command you ran:
Actual behavior
Expected behavior
No error
Additional context
Yaml spec didn't mentioned anything about
?
being special so it should be fine to be unquoted. https://yaml.org/spec/1.2.2/#822-block-mappingsI've tried a bunch of online yaml parser (like https://onlineyamltools.com/validate-yaml, https://jsonformatter.org/yaml-validator, https://yamlchecker.com/ and https://www.yamllint.com/) and they are fine with it.
Libraries like
js-yaml
(npm) andserde_yaml
(rust) has no problem to parse this as wellThe text was updated successfully, but these errors were encountered: