Skip to content

change in wrapping between 4.53.3 and 4.53.4 #2823

Closed

Description

@luciangabor

Describe the bug
strings can no longer be extracted as written

Version of yq: 4.53.4
Operating system: linux
Installed via: docker

Input Yaml
data.yml:

a:
  - really really really really really really really really really really really long string

Command
The command you ran:

docker run --rm -i mikefarah/yq:4.53.4 -Pr=false '.[][]' < data.yaml

Actual behaviour

really really really really really really really really really really really long
 string

Expected behaviour

really really really really really really really really really really really long string

Additional context
with the previous version I do get the expected result:

docker run --rm -i mikefarah/yq:4.53.3 -Pr=false '.[][]' < data.yaml

Activity

  1. luciangabor commented on Aug 19, 2026

    @luciangabor
    Author

    and it's about -r=false ... useful for me to keep comments

    data.yaml:

    a:
      # comment
      - really really really really really really really really really really really long string
    $ docker run --rm -i mikefarah/yq:4.53.3 -r=false '.[][]' < data.yaml
    # comment
    really really really really really really really really really really really long string
    
     docker run --rm -i mikefarah/yq:4.53.4 -r=false '.[][]' < data.yaml
    # comment
    really really really really really really really really really really really long
      string
    
    $ docker run --rm -i mikefarah/yq:4.53.4 '.[][]' < data.yaml
    really really really really really really really really really really really long string
  2. mxey commented on Aug 20, 2026

    @mxey
    Contributor
  3. aschleifer commented on Aug 20, 2026

    @aschleifer

    fixed in https://github.com/mikefarah/yq/releases/tag/v4.53.5

    Thanks for the quick fix. Will you also create a Release for this tag? mise needs that to download the binary.

    If this is already in progress and just needs time then I apologize for pushing on this.

  4. mikefarah commented on Aug 20, 2026

    @mikefarah
    Owner

    On it...release broke cause of the go version bump...standby 😅

  5. mikefarah commented on Aug 20, 2026

    @mikefarah
    Owner

    Released in v4.53.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions