catlin icon indicating copy to clipboard operation
catlin copied to clipboard

Separate linting resources and the catalog "layout"

Open vdemeester opened this issue 2 years ago • 0 comments

As of today, lintking a tekton resource in a yaml file, not in a catalog, will fail saying the resource path is wrong.

FILE: ../tmp/task/go-ko-image/go-ko-image.yaml
ERROR: Resource path is invalid; expected path: task/go-ko-image/0.2.1/go-ko-image.yaml

It shouldn't be the case. We should be able to validate the layout of a catalog (task/{name}/{version}/…) and the content of the file independently.

It could be 2 different commands catlin validate-resource path/to/file and catlin validate-catalog path/to/catalog.

vdemeester avatar Nov 27 '23 14:11 vdemeester