Skip to content

index.yaml are not written atomically #7988

Closed

Description

@rabadin

index.yaml files, as generated by helm repo index, are not written atomically. As a result files can be half-written when helm or another client reads them.

This is an example of a custom YAML scanner breaking because of a half-written file:

/<redacted>/path/to/scanner.py", line 319, in scan_index
"could not find expected ':'", self.get_mark())
yaml.scanner.ScannerError: while scanning a simple key
in "<unicode string>", line 3497, column 5:
appVersi
^
could not find expected ':'
in "<unicode string>", line 3497, column 13:
appVersi
^

Activity

  1. linked a pull request that will close this issuefix: write index.yaml file atomically #7954on Apr 24, 2020
  2. added
    bug
    on Apr 24, 2020
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions