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

incorrect yaml multiline string handling #210

Closed
1 task done
harrhp opened this issue Dec 11, 2024 · 1 comment · Fixed by #232
Closed
1 task done

incorrect yaml multiline string handling #210

harrhp opened this issue Dec 11, 2024 · 1 comment · Fixed by #232
Assignees

Comments

@harrhp
Copy link

harrhp commented Dec 11, 2024

Code of Conduct

  • I agree to follow this project's Code of Conduct

What happened?

consider config like this

alias:
  - name: s
    value: >
      !f() {
        set -e -o pipefail;
        git status;
      };
      f
    type: git

> supposed to replace new lines with spaces (https://yaml-multiline.info/). instead it keeps new lines

git config before 0.23

[alias]
	s = "!f() {   set -e -o pipefail;   git status; }; f"

after

[alias]
	s = "!f() {\n  set -e -o pipefail;\n  git status;\n}; f\n"

What OS are you seeing the problem on?

Windows

Which shell are you using?

powershell

@JanDeDobbeleer
Copy link
Owner

Seems to be due to an upgrade in the yaml parser (which looks like a bug there).

- github.com/goccy/go-yaml v1.12.0
+ github.com/goccy/go-yaml v1.14.3

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 a pull request may close this issue.

2 participants