To ensure that you develop with the latest code from devfile properties, update the devfile library schema to the latest version.
Procedure
-
Add execute permissions for everyone on this script:
$ chmod a+x r./scripts/updateApi.sh
-
To fetch the latest
github.com/devfile/api
Go module and to update the schema saved underpkg/devfile/parser/data
, enter:$ ./scripts/updateApi.sh
-
Update the devile schema version by running:
$ ./updateAPI.sh 2.x.x
Note: Running the script this way, with no arguments, updates the devfile to the latest version.
Additional resources
-
To run tests and API tests, see the devfile/library/tests repository.
-
For more information, see the devfile/library repository.