wolfictl
wolfictl copied to clipboard
lint: add new lint rule to enforce version is pinned in `package.name` (if `package.version` specified)
Description
Imagine we want to build the following package:
package:
name: foo
version: 1.2.3
We should not allow this since there could be already package named foo
that use the latest
. Instead it'd be nice to pass if -major.minor
is set as suffix.
Valid:
package:
name: foo-1
version: 1.2.3
package:
name: foo-1.2
version: 1.2.3
package:
name: foo-1.2.3
version: 1.2.3
Not valid: (Version mismatch)
package:
name: foo-2.1
version: 1.2.3