rust-cli / rust-cli/config-rs

YAML: incorrect parsing of curly brackets

Open
#439 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-format
Dominant language
Rust
Stars
3.2k
Forks
265
Avg merge
2h 42m
Merged PRs (30d)
4

Description

When parsing curly brackets, even as a string ("${env_var}"), it decodes the curly brackets to it's ASCII code. This is probably a bug of the underlying yaml library (yaml-rust).

I solved it by not using curly brackets.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported parsing of the string "${env_var}" and investigate the YAML parsing path, including the yaml-rust dependency mentioned in the issue. Done means curly brackets inside a string remain literal rather than being decoded to an ASCII code.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, yaml
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.