booleans that are written as strings cannot be parsed
- Dominant language
- Go
- Stars
- 5.8k
- Forks
- 657
- Avg merge
- 20h 36m
- Merged PRs (30d)
- 6
Description
### HCL Template
```hcl
# Place your HCL configuration file here
boolean_value = "true"
```
### Expected behavior
Elegantly handle "true" or "false" boolean strings
### Actual behavior
Stops decoding and gets an error:
At ##:##: root.boolean_value: unknown type *ast.LiteralType
### Steps to reproduce
1. Set a boolean value to "true" or "false" rather than true or false (no quotes)
2. Parse
3. Try to decode
### References
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the issue with the provided HCL configuration and follow the parsing and decoding entry points that produce the unknown type *ast.LiteralType error. Check how unquoted booleans are handled compared with quoted "true" and "false" values. Done means both boolean strings decode successfully without the reported error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100