wolfictl icon indicating copy to clipboard operation
wolfictl copied to clipboard

lint: add new lint rule to enforce version is pinned in `package.name` (if `package.version` specified)

Open Dentrax opened this issue 1 year ago • 0 comments

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

Dentrax avatar May 16 '23 18:05 Dentrax