Skip to content

The indentation has been striped from the []byte passed to UnmarshalYAML. #670

@k1LoW

Description

@k1LoW

Hi @goccy!

Describe the bug
Since 1.15.18, the indentation has been striped from the []byte passed to UnmarshalYAML.

This may not be a bug.

To Reproduce

version go.dev/play
1.15.17 https://go.dev/play/p/hSEU5Gz6PFh
1.15.18 https://go.dev/play/p/HOr8jx_D6f4

Expected behavior
I don't know whether the behavior of 1.15.17 is correct or the behavior of 1.15.18~ is correct.

Screenshots
None

Version Variables

  • Go version: 1.24
  • go-yaml's Version: v1.15.8~

Additional context
Please tell me which behavior is correct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions