google / google/go-jsonnet

std.parseYaml processes "on" as a boolean

Open
#766 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1.8k
Forks
263
PR merge metrics
No merged PRs in 30d

Description

I noticed this on go-jsonnet but couldn't replicate with the C or rust version:

```
➜ cat a.yaml
on: help

➜ jsonnet -e 'std.parseYaml(importstr "a.yaml")'
{
"true": "help"
}

➜ cjsonnet -e 'std.parseYaml(importstr "a.yaml")'
{
"on": "help"
}

➜ jrsonnet -e 'std.parseYaml(importstr "a.yaml")'
{
"on": "help"
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.