Skip to content

Unstable formatting of comments #253

@denik

Description

@denik

This file when formatted alternates back and forth between 2 representations:

artifacts:
  my_artifact:
  # build
% cat t.yaml && go tool yamlfmt -v t.yaml && cat t.yaml && go tool yamlfmt -v t.yaml && cat t.yaml
artifacts:
  my_artifact:
  # build
The following files were modified:
t.yaml
artifacts:
  my_artifact:
# build
The following files were modified:
t.yaml
artifacts:
  my_artifact:
  # build

Version: v0.17.0

Config

formatter:
  type: basic
  retain_line_breaks_single: true
  trim_trailing_whitespace: true
  disable_alias_key_correction: true
  scan_folded_as_literal: true
  drop_merge_tag: true

Metadata

Metadata

Assignees

No one assigned

    Labels

    yaml_v3_problemA bug in the underlying yaml library. These issues are vastly harder to fix.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions