-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- use forked quicktype; - update README. Signed-off-by: black-desk <me@black-desk.cn>
- Loading branch information
1 parent
ec4a20c
commit 98ff95e
Showing
8 changed files
with
81 additions
and
1,114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# codegen | ||
|
||
[codegen.sh](./codegen.sh) use [quicktype] to | ||
generate json (de)serializing code in libs/runtime/include | ||
from [runtime-spec]. | ||
|
||
[quicktype]: https://github.com/glideapps/quicktype | ||
[runtime-spec]: https://github.com/opencontainers/runtime-spec | ||
|
||
The generated code needs to apply a little [patch](./fix.patch) to compile. | ||
|
||
You can recreate that patch follow these instructions: | ||
|
||
1. Remove old patch | ||
|
||
```bash | ||
rm ./fix.patch | ||
``` | ||
|
||
2. Run codegen.sh | ||
|
||
```bash | ||
./codegen.sh | ||
``` | ||
|
||
3. Run create-patch.sh, it will start a new shell. | ||
|
||
```bash | ||
./create-patch.sh | ||
``` | ||
|
||
4. Change the code as your wish and leave `libs/runtime/include.orig` untouched | ||
|
||
5. Exit | ||
|
||
```bash | ||
exit | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.