package: reject duplicate project manifest versions
This commit is contained in:
@@ -301,7 +301,9 @@ It also compares the complete `checksum:` field, so extra or trailing checksum
|
||||
text, or a duplicate checksum field, is rejected as `BAD package checksum`.
|
||||
Package manifests must contain exactly one `version: 1` field; duplicate or
|
||||
prefix-matching values such as `version: 10` are rejected as `BAD package version`.
|
||||
The project manifest must also contain exactly one non-empty `name:` field;
|
||||
The project manifest must contain exactly one `manifest-version: 1` field; duplicate
|
||||
or prefix-matching values such as `manifest-version: 10` are rejected as
|
||||
`BAD project manifest version: expected 1`. It must also contain exactly one non-empty `name:` field;
|
||||
otherwise doctor reports `BAD project manifest name: expected a non-empty name`.
|
||||
|
||||
Starter projects created with `claro new MyProject` use the same `manifest-version: 1` and `lock-version: 1` headers as `claro package init`, so the first project files match the package maintenance tools.
|
||||
|
||||
Reference in New Issue
Block a user