File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,13 @@ tasks:
119
119
cmds :
120
120
- go vet {{default .DEFAULT_GO_PACKAGES .GO_PACKAGES}}
121
121
122
+ go:easyjson-generate :
123
+ desc : Run easyjson code generation
124
+ cmds :
125
+ - go install github.com/mailru/easyjson/...@v0.7.7
126
+ - easyjson arduino/cores/packageindex/index.go
127
+ - easyjson arduino/libraries/librariesindex/json.go
128
+
122
129
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-markdown-task/Taskfile.yml
123
130
markdown:check-links :
124
131
desc : Check for broken links
Original file line number Diff line number Diff line change @@ -349,6 +349,13 @@ func main() {
349
349
}
350
350
```
351
351
352
+ ### About ` easyjson ` golang library
353
+
354
+ We use the hi-performance ` easyjson ` library to parse the large JSON index files for libraries and platforms. To obtain
355
+ the best performance we must do some code generation, this is done via ` task go:easyjson-generate ` . If you ever touch
356
+ source code using the ` easyjson ` library, make sure to re-run the ` go:easyjson-generate ` task to see if there are
357
+ changes in the generated code.
358
+
352
359
### Additional settings
353
360
354
361
If you need to push a commit that's only shipping documentation changes or example files, thus a complete no-op for the
You can’t perform that action at this time.
0 commit comments