Skip to content

Commit

Permalink
fix: move version
Browse files Browse the repository at this point in the history
Problem: a compatibility manifest can combine several different
namespaces (and thus compatibility interest groups) labels, and
each would carry its own version. Right now version is at the
top level of the entire set.
Solution: move version down to belong within a namespace

Signed-off-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch committed Jan 24, 2024
1 parent 6764db8 commit e767575
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 16 deletions.
2 changes: 1 addition & 1 deletion archspec/compspec.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compatibilities": {
"version": "0.0.0",
"io.archspec.cpu": {
"version": "0.0.0",
"annotations": [
"family",
"model",
Expand Down
14 changes: 7 additions & 7 deletions definition-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
"properties": {
"compatibilities": {
"type": "object",
"properties": {
"version": {
"$comment": "Version of the metadata namespace",
"type": "string"
},
"patternProperties": {
"([\\w]*)": {
"patternProperties": {
"([\\w]*)": {
"properties": {
"version": {
"$comment": "Version of the metadata namespace",
"type": "string"
},
"annotations": {
"$comment": "Acceptable keys for a given namespace.",
"type": "array",
Expand Down
14 changes: 7 additions & 7 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
"properties": {
"compatibilities": {
"type": "object",
"properties": {
"version": {
"$comment": "Version of the metadata namespace",
"type": "string"
},
"patternProperties": {
"([\\w]*)": {
"patternProperties": {
"([\\w]*)": {
"properties": {
"version": {
"$comment": "Version of the metadata namespace",
"type": "string"
},
"annotations": {
"$comment": "Key value pairs for a given namespace.",
"type": "array",
Expand Down
6 changes: 5 additions & 1 deletion supercontainers/compspec.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,35 @@
{
"compatibilities": {
"version": "0.0.0",
"org.supercontainers.mpi": {
"version": "0.0.0",
"annotations": [
"implementation",
"portability.optimization",
"porability.mode"
]
},
"org.supercontainers.hardware.gpu": {
"version": "0.0.0",
"annotations": [
"driver.version",
"cuda.version",
"architecture"
]
},
"org.supercontainers.communication": {
"version": "0.0.0",
"annotations": [
"framework"
]
},
"org.supercontainers.openmpi": {
"version": "0.0.0",
"annotations": [
"version"
]
},
"org.supercontainers.libfabric": {
"version": "0.0.0",
"annotations": [
"abi.version"
]
Expand Down

0 comments on commit e767575

Please sign in to comment.