Skip to content

Plugin and devfile registry will fail to build if any line ends in tab character #15507

Open
@amisevsk

Description

@amisevsk

Describe the bug

Due to an open issue with PyYAML (which is the main dependency of yq), any yaml files in registries that end in tab characters will cause builds to fail.

Expected behavior

The yaml reference parser does not have an issue with trailing tabs, so this appears to be a PyYAML issue, but it's probably good practice to avoid trailing whitespace in meta.yamls anyways. It would be great to have a linter of some sort check for e.g. 1) file ends in newline and 2) no trailing whitespace on PRs.

Additional context

See #15483 for our initial encounter with the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/devfile-registryarea/plugin-registrykind/bugOutline of a bug - must adhere to the bug report template.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.severity/P2Has a minor but important impact to the usage or development of the system.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions