Skip to content

Commit 1ccb963

Browse files
authored
fix: Add support for devfile attributes for schema version 2.0.0 (#118)
* fix: Add support for devfile attributes for schema version 2.0.0 Signed-off-by: Oleksii Orel <[email protected]>
1 parent aef9b62 commit 1ccb963

File tree

11 files changed

+571
-328
lines changed

11 files changed

+571
-328
lines changed

.deps/EXCLUDED/dev.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,24 @@ This file contains a manual contribution to .deps/dev.md and it's needed because
22

33
| Packages | Resolved CQs |
44
| --- | --- |
5-
| `[email protected]` | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/eslint-visitor-keys/3.0.0) |
6-
| `[email protected]` | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/fs-monkey/1.0.3) |
7-
| `[email protected]` | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/fsevents/2.3.2) |
5+
| `[email protected]` | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/eslint/9.19.0) |
6+
| `[email protected]` | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/fsevents/2.3.3) |
7+
| `@rollup/[email protected]` | transitive dependency |
8+
| `@rollup/[email protected]` | transitive dependency |
9+
| `@rollup/[email protected]` | transitive dependency |
10+
| `@rollup/[email protected]` | transitive dependency |
11+
| `@rollup/[email protected]` | transitive dependency |
12+
| `@rollup/[email protected]` | transitive dependency |
13+
| `@rollup/[email protected]` | transitive dependency |
14+
| `@rollup/[email protected]` | transitive dependency |
15+
| `@rollup/[email protected]` | transitive dependency |
16+
| `@rollup/[email protected]` | transitive dependency |
17+
| `@rollup/[email protected]` | transitive dependency |
18+
| `@rollup/[email protected]` | transitive dependency |
19+
| `@rollup/[email protected]` | transitive dependency |
20+
| `@rollup/[email protected]` | transitive dependency |
21+
| `@rollup/[email protected]` | transitive dependency |
22+
| `@rollup/[email protected]` | transitive dependency |
23+
| `@rollup/[email protected]` | transitive dependency |
24+
| `@rollup/[email protected]` | transitive dependency |
25+
| `@rollup/[email protected]` | transitive dependency |

.deps/EXCLUDED/prod.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ This file lists dependencies that do not need CQs or auto-detection does not wor
22

33
| Packages | Resolved CQs |
44
| --- | --- |
5-
| `@devfile/api@2.2.1-alpha-1667236163` | N/A |
5+
| `@devfile/api@2.3.0-1738342178` | N/A |

.deps/dev.md

Lines changed: 244 additions & 178 deletions
Large diffs are not rendered by default.

.deps/prod.md

Lines changed: 28 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -2,120 +2,38 @@
22

33
| Packages | License | Resolved CQs |
44
| --- | --- | --- |
5-
| [`@devfile/[email protected]`](https://github.com/devfile/api.git) | Apache-2.0 | N/A |
6-
| [`@types/[email protected]`](https://github.com/DefinitelyTyped/DefinitelyTyped.git) | MIT | clearlydefined |
7-
| [`@types/[email protected]`](https://github.com/DefinitelyTyped/DefinitelyTyped.git) | MIT | clearlydefined |
8-
| [`@types/[email protected]`](https://github.com/DefinitelyTyped/DefinitelyTyped.git) | MIT | clearlydefined |
9-
| [`@types/[email protected]`](https://github.com/DefinitelyTyped/DefinitelyTyped.git) | MIT | clearlydefined |
10-
| [`@types/[email protected]`](https://github.com/DefinitelyTyped/DefinitelyTyped.git) | MIT | clearlydefined |
11-
| [`[email protected]`](https://github.com/ajv-validator/ajv.git) | MIT | #979 |
12-
| [`[email protected]`](https://github.com/chalk/ansi-regex.git) | MIT | #5896 |
13-
| [`[email protected]`](https://github.com/chalk/ansi-styles.git) | MIT | clearlydefined |
5+
| [`@devfile/[email protected]`](https://github.com/GIT_USER_ID/GIT_REPO_ID.git) | Apache-2.0 | N/A |
6+
| [`@inversifyjs/[email protected]`](git+https://github.com/inversify/monorepo.git) | MIT | #17894 |
7+
| [`@inversifyjs/[email protected]`](git+https://github.com/inversify/monorepo.git) | MIT | #17399 |
8+
| [`@inversifyjs/[email protected]`](git+https://github.com/inversify/monorepo.git) | MIT | #17412 |
9+
| [`@types/[email protected]`](https://github.com/DefinitelyTyped/DefinitelyTyped.git) | MIT | #11004 |
10+
| [`@types/[email protected]`](https://github.com/DefinitelyTyped/DefinitelyTyped.git) | MIT | clearlydefined |
1411
| [`[email protected]`](https://github.com/nodeca/argparse.git) | Python-2.0 | [CQ22954](https://dev.eclipse.org/ipzilla/show_bug.cgi?id=22954) |
15-
| [`[email protected]`](git://github.com/joyent/node-asn1.git) | MIT | clearlydefined |
16-
| [`[email protected]`](https://github.com/mcavage/node-assert-plus.git) | MIT | clearlydefined |
1712
| [`[email protected]`](git+https://github.com/alexindigo/asynckit.git) | MIT | clearlydefined |
18-
| [`[email protected]`](https://github.com/mikeal/aws-sign) | Apache-2.0 | clearlydefined |
19-
| [`[email protected]`](https://github.com/mhart/aws4.git) | MIT | clearlydefined |
20-
| [`[email protected]`](https://github.com/axios/axios.git) | MIT | [CQ23019](https://dev.eclipse.org/ipzilla/show_bug.cgi?id=23019) |
21-
| [`[email protected]`](https://github.com/babel/babel/tree/master/packages/babel-code-frame) | MIT | clearlydefined |
22-
| [`[email protected]`](https://github.com/babel/babel/tree/master/packages/babel-core) | MIT | clearlydefined |
23-
| [`[email protected]`](https://github.com/babel/babel/tree/master/packages/babel-generator) | MIT | clearlydefined |
24-
| [`[email protected]`](https://github.com/babel/babel/tree/master/packages/babel-helpers) | MIT | clearlydefined |
25-
| [`[email protected]`](https://github.com/babel/babel/tree/master/packages/babel-messages) | MIT | clearlydefined |
26-
| [`[email protected]`](https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-es2015-block-scoping) | MIT | clearlydefined |
27-
| [`[email protected]`](https://github.com/babel/babel/tree/master/packages/babel-register) | MIT | clearlydefined |
28-
| [`[email protected]`](https://github.com/babel/babel/tree/master/packages/babel-runtime) | MIT | #943 |
29-
| [`[email protected]`](https://github.com/babel/babel/tree/master/packages/babel-template) | MIT | clearlydefined |
30-
| [`[email protected]`](https://github.com/babel/babel/tree/master/packages/babel-traverse) | MIT | clearlydefined |
31-
| [`[email protected]`](https://github.com/babel/babel/tree/master/packages/babel-types) | MIT | clearlydefined |
32-
| [`[email protected]`](https://github.com/babel/babylon) | MIT | #1052 |
33-
| [`[email protected]`](git://github.com/juliangruber/balanced-match.git) | MIT | clearlydefined |
34-
| [`[email protected]`](git://github.com/joyent/node-bcrypt-pbkdf.git) | BSD-3-Clause | #2725 |
35-
| [`[email protected]`](git://github.com/petkaantonov/bluebird.git) | MIT | clearlydefined |
36-
| [`[email protected]`](git://github.com/juliangruber/brace-expansion.git) | MIT | clearlydefined |
37-
| [`[email protected]`](https://github.com/mikeal/caseless) | Apache-2.0 | clearlydefined |
38-
| [`[email protected]`](https://github.com/chalk/chalk.git) | MIT | clearlydefined |
13+
| [`[email protected]`](https://github.com/axios/axios.git) | MIT | #14871 |
3914
| [`[email protected]`](git://github.com/felixge/node-combined-stream.git) | MIT | clearlydefined |
40-
| [`[email protected]`](git://github.com/substack/node-concat-map.git) | MIT | clearlydefined |
41-
| [`[email protected]`](git://github.com/thlorenz/convert-source-map.git) | MIT | clearlydefined |
42-
| [`[email protected]`](https://github.com/zloirock/core-js.git) | MIT | #2912 |
43-
| [`[email protected]`](git://github.com/isaacs/core-util-is) | MIT | #5898 |
44-
| [`[email protected]`](git://github.com/trentm/node-dashdash.git) | MIT | clearlydefined |
45-
| [`[email protected]`](git://github.com/visionmedia/debug.git) | MIT | clearlydefined |
4615
| [`[email protected]`](git://github.com/felixge/node-delayed-stream.git) | MIT | clearlydefined |
47-
| [`[email protected]`](https://github.com/sindresorhus/detect-indent.git) | MIT | clearlydefined |
48-
| [`[email protected]`](https://github.com/quartzjer/ecc-jsbn.git) | MIT | clearlydefined |
49-
| [`[email protected]`](https://github.com/sindresorhus/escape-string-regexp.git) | MIT | clearlydefined |
50-
| [`[email protected]`](http://github.com/estools/esutils.git) | BSD-2-Clause | #120 |
51-
| [`[email protected]`](https://github.com/justmoon/node-extend.git) | MIT | clearlydefined |
52-
| [`[email protected]`](git://github.com/davepacheco/node-extsprintf.git) | MIT | #1813 |
53-
| [`[email protected]`](git+https://github.com/epoberezkin/fast-deep-equal.git) | MIT | clearlydefined |
54-
| [`[email protected]`](git://github.com/epoberezkin/fast-json-stable-stringify.git) | MIT | clearlydefined |
55-
| [`[email protected]`]([email protected]:follow-redirects/follow-redirects.git) | MIT | clearlydefined |
56-
| [`[email protected]`](https://github.com/mikeal/forever-agent) | Apache-2.0 | clearlydefined |
57-
| [`[email protected]`](git://github.com/form-data/form-data.git) | MIT | clearlydefined |
58-
| [`[email protected]`](https://github.com/jprichardson/node-fs-extra) | MIT | clearlydefined |
59-
| [`[email protected]`](https://github.com/arekinath/node-getpass.git) | MIT | clearlydefined |
60-
| [`[email protected]`](https://github.com/sindresorhus/globals.git) | MIT | clearlydefined |
61-
| [`[email protected]`](https://github.com/isaacs/node-graceful-fs) | ISC | clearlydefined |
62-
| [`[email protected]`](https://github.com/ahmadnassri/har-schema.git) | ISC | clearlydefined |
63-
| [`[email protected]`](https://github.com/ahmadnassri/node-har-validator.git) | MIT | clearlydefined |
64-
| [`[email protected]`](https://github.com/sindresorhus/has-ansi.git) | MIT | clearlydefined |
65-
| [`[email protected]`](https://github.com/sindresorhus/home-or-tmp.git) | MIT | clearlydefined |
66-
| [`[email protected]`](git://github.com/joyent/node-http-signature.git) | MIT | #2732 |
67-
| [`[email protected]`](https://github.com/zertosh/invariant) | MIT | #1034 |
68-
| [`[email protected]`](https://github.com/inversify/InversifyJS.git) | MIT | clearlydefined |
69-
| [`[email protected]`](https://github.com/sindresorhus/is-finite.git) | MIT | clearlydefined |
70-
| [`[email protected]`](git://github.com/hughsk/is-typedarray.git) | MIT | #2531 |
71-
| [`[email protected]`](https://github.com/rvagg/isstream.git) | MIT | clearlydefined |
72-
| [`[email protected]`](https://github.com/lydell/js-tokens.git) | MIT | #2181 |
16+
| [`[email protected]`](git://github.com/stefanpenner/es6-promise.git) | MIT | #2898 |
17+
| [`[email protected]`](git+ssh://[email protected]/follow-redirects/follow-redirects.git) | MIT | #10782 |
18+
| [`[email protected]`](git://github.com/form-data/form-data.git) | MIT | clearlydefined |
19+
| [`[email protected]`](https://github.com/jprichardson/node-fs-extra) | MIT | #18872 |
20+
| [`[email protected]`](https://github.com/isaacs/node-graceful-fs) | ISC | #7413 |
21+
| [`[email protected]`](https://github.com/inversify/InversifyJS.git) | MIT | #17898 |
7322
| [`[email protected]`](https://github.com/nodeca/js-yaml.git) | MIT | clearlydefined |
74-
| [`[email protected]`](https://github.com/andyperlitch/jsbn.git) | MIT | clearlydefined |
75-
| [`[email protected]`](https://github.com/mathiasbynens/jsesc.git) | MIT | clearlydefined |
76-
| [`[email protected]`](git+https://github.com/epoberezkin/json-schema-traverse.git) | MIT | clearlydefined |
77-
| [`[email protected]`](http://github.com/kriszyp/json-schema) | BSD* | #1046 |
78-
| [`[email protected]`](git://github.com/isaacs/json-stringify-safe) | ISC | clearlydefined |
79-
| [`[email protected]`](https://github.com/aseemk/json5.git) | MIT | #1040 |
80-
| [`[email protected]`](https://github.com/microsoft/node-jsonc-parser) | MIT | clearlydefined |
23+
| [`[email protected]`](https://github.com/microsoft/node-jsonc-parser) | MIT | #15491 |
8124
| [`[email protected]`]([email protected]:jprichardson/node-jsonfile.git) | MIT | clearlydefined |
82-
| [`jsprim@1.4.1`](git://github.com/joyent/node-jsprim.git) | MIT | clearlydefined |
25+
| [`jsonschema@1.5.0`](git://github.com/tdegrunt/jsonschema.git) | MIT | clearlydefined |
8326
| [`[email protected]`](https://github.com/lodash/lodash.git) | MIT | #2096 |
84-
| [`[email protected]`](git://github.com/zertosh/loose-envify.git) | MIT | clearlydefined |
85-
| [`[email protected]`](https://github.com/jshttp/mime-db.git) | MIT | clearlydefined |
86-
| [`[email protected]`](https://github.com/jshttp/mime-types.git) | MIT | clearlydefined |
87-
| [`[email protected]`](git://github.com/isaacs/minimatch.git) | ISC | clearlydefined |
88-
| [`[email protected]`](git://github.com/minimistjs/minimist.git) | MIT | #5886 |
89-
| [`[email protected]`](https://github.com/substack/node-mkdirp.git) | MIT | clearlydefined |
90-
| [`[email protected]`](https://github.com/zeit/ms.git) | MIT | clearlydefined |
91-
| [`[email protected]`](https://github.com/mikeal/oauth-sign) | Apache-2.0 | clearlydefined |
92-
| [`[email protected]`](https://github.com/sindresorhus/os-homedir.git) | MIT | clearlydefined |
93-
| [`[email protected]`](https://github.com/sindresorhus/os-tmpdir.git) | MIT | clearlydefined |
94-
| [`[email protected]`](https://github.com/sindresorhus/path-is-absolute.git) | MIT | clearlydefined |
95-
| [`[email protected]`](git://github.com/braveg1rl/performance-now.git) | MIT | clearlydefined |
96-
| [`[email protected]`](git://github.com/benjamn/private.git) | MIT | clearlydefined |
97-
| [`[email protected]`]([email protected]:lupomontero/psl.git) | MIT | clearlydefined |
98-
| [`[email protected]`](https://github.com/bestiejs/punycode.js.git) | MIT | clearlydefined |
99-
| [`[email protected]`](https://github.com/ljharb/qs.git) | BSD-3-Clause | clearlydefined |
100-
| [`[email protected]`](https://github.com/rbuckton/reflect-metadata.git) | Apache-2.0 | clearlydefined |
101-
| [`[email protected]`](https://github.com/facebook/regenerator/tree/master/packages/regenerator-runtime) | MIT | clearlydefined |
102-
| [`[email protected]`](https://github.com/sindresorhus/repeating.git) | MIT | clearlydefined |
103-
| [`[email protected]`](https://github.com/request/request.git) | Apache-2.0 | #997 |
104-
| [`[email protected]`](git://github.com/jhnns/rewire.git) | MIT | clearlydefined |
105-
| [`[email protected]`](git://github.com/feross/safe-buffer.git) | MIT | clearlydefined |
106-
| [`[email protected]`](git+https://github.com/ChALkeR/safer-buffer.git) | MIT | clearlydefined |
107-
| [`[email protected]`](https://github.com/sindresorhus/slash.git) | MIT | clearlydefined |
108-
| [`[email protected]`](https://github.com/evanw/node-source-map-support) | MIT | clearlydefined |
109-
| [`[email protected]`](http://github.com/mozilla/source-map.git) | BSD-3-Clause | #2400 |
110-
| [`[email protected]`](git+https://github.com/joyent/node-sshpk.git) | MIT | clearlydefined |
111-
| [`[email protected]`](https://github.com/chalk/strip-ansi.git) | MIT | clearlydefined |
112-
| [`[email protected]`](https://github.com/chalk/supports-color.git) | MIT | clearlydefined |
113-
| [`[email protected]`](https://github.com/sindresorhus/to-fast-properties.git) | MIT | clearlydefined |
114-
| [`[email protected]`](git://github.com/salesforce/tough-cookie.git) | BSD-3-Clause | clearlydefined |
115-
| [`[email protected]`](https://github.com/sindresorhus/trim-right.git) | MIT | clearlydefined |
116-
| [`[email protected]`](https://github.com/mikeal/tunnel-agent) | Apache-2.0 | clearlydefined |
117-
| [`[email protected]`](https://github.com/dchest/tweetnacl-js.git) | Unlicense | #1035 |
118-
| [`[email protected]`](git+https://github.com/RyanZim/universalify.git) | MIT | clearlydefined |
119-
| [`[email protected]`](http://github.com/garycourt/uri-js) | BSD-2-Clause | #1086 |
120-
| [`[email protected]`](https://github.com/uuidjs/uuid.git) | MIT | #2733 |
121-
| [`[email protected]`](git://github.com/davepacheco/node-verror.git) | MIT | clearlydefined |
27+
| [`[email protected]`](https://github.com/jshttp/mime-db.git) | MIT | clearlydefined |
28+
| [`[email protected]`](https://github.com/jshttp/mime-types.git) | MIT | clearlydefined |
29+
| [`[email protected]`](https://github.com/bitinn/node-fetch.git) | MIT | #10509 |
30+
| [`[email protected]`](https://github.com/Rob--W/proxy-from-env.git) | MIT | clearlydefined |
31+
| [`[email protected]`](https://github.com/unshiftio/querystringify) | MIT | clearlydefined |
32+
| [`[email protected]`](https://github.com/rbuckton/reflect-metadata.git) | Apache-2.0 | clearlydefined |
33+
| [`[email protected]`](https://github.com/unshiftio/requires-port) | MIT | clearlydefined |
34+
| [`[email protected]`](git+https://github.com/Sebmaster/tr46.js.git) | MIT | clearlydefined |
35+
| [`[email protected]`](git+https://github.com/nodejs/undici.git) | MIT | clearlydefined |
36+
| [`[email protected]`](git+https://github.com/RyanZim/universalify.git) | MIT | clearlydefined |
37+
| [`[email protected]`](https://github.com/unshiftio/url-parse.git) | MIT | clearlydefined |
38+
| [`[email protected]`](https://github.com/jsdom/webidl-conversions.git) | BSD-2-Clause | clearlydefined |
39+
| [`[email protected]`](https://github.com/jsdom/whatwg-url.git) | MIT | clearlydefined |

.github/workflows/pr-checks.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,18 @@ on:
1515
- main
1616

1717
jobs:
18+
dash-licenses:
19+
runs-on: ubuntu-22.04
20+
if: ${{ github.base_ref == 'main' }}
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v3
24+
with:
25+
fetch-depth: 0
26+
persist-credentials: false
27+
- name: Check dependencies usage restrictions
28+
run: docker run --rm -t -v ${PWD}/:/workspace/project quay.io/che-incubator/dash-licenses:next --check
29+
1830
unit-tests:
1931
runs-on: ubuntu-22.04
2032
steps:

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
"format": "if-env SKIP_FORMAT=true && echo 'skip format check' || prettier --check '{src,tests}/**/*.ts' package.json",
2323
"format:fix": "prettier --write '{src,tests}/**/*.ts' package.json",
2424
"lint": "if-env SKIP_LINT=true && echo 'skip lint check' || eslint --cache=true --no-error-on-unmatched-pattern=true '{src,tests}/(!model|**)/*.ts'",
25-
"lint:fix": "eslint --fix --cache=true --no-error-on-unmatched-pattern=true \"{src,tests}/(!model|**)/*.ts\"",
25+
"lint:fix": "eslint --fix --cache=true --no-error-on-unmatched-pattern=true '{src,tests}/(!model|**)/*.ts'",
2626
"test": "if-env SKIP_TEST=true && echo 'skip test' || jest --forceExit",
2727
"watch": "tsc -w",
2828
"license:check": "docker run --rm -t -v ${PWD}/:/workspace/project quay.io/che-incubator/dash-licenses:next --check",
2929
"license:generate": "docker run --rm -t -v ${PWD}/:/workspace/project quay.io/che-incubator/dash-licenses:next",
30-
"publish:next": "yarn publish --registry=https://registry.npmjs.org/ --no-git-tag-version --new-version 0.0.1-\"$(date +%s)\""
30+
"publish:next": "yarn publish --registry=https://registry.npmjs.org/ --no-git-tag-version --new-version 0.0.1-'$(date +%s)'"
3131
},
3232
"repository": {
3333
"type": "git",
@@ -41,12 +41,13 @@
4141
"homepage": "https://github.com/eclipse-che/che-devfile-registry#readme",
4242
"dependencies": {
4343
"@devfile/api": "2.3.0-1738342178",
44-
"jsonschema": "^1.4.1",
4544
"axios": "^1.7.4",
4645
"fs-extra": "^11.2.0",
4746
"inversify": "^6.0.2",
47+
"lodash": "^4.17.21",
4848
"js-yaml": "^4.0.0",
4949
"jsonc-parser": "^3.0.0",
50+
"jsonschema": "^1.4.1",
5051
"reflect-metadata": "^0.2.2"
5152
},
5253
"devDependencies": {
@@ -93,5 +94,6 @@
9394
"<rootDir>/lib"
9495
],
9596
"preset": "ts-jest"
96-
}
97+
},
98+
"packageManager": "[email protected]"
9799
}

0 commit comments

Comments
 (0)