Add preupload hooks to build/blueprint

Run gofmt and bpfmt during preupload, and warn about uses of
DO NOT MERGE.

Test: repo upload
Change-Id: I5f8a318f9ec1dbca897d25f25107df36d160e1f6
This commit is contained in:
Colin Cross 2021-02-23 10:28:33 -08:00
parent 0335565677
commit 747b95206b

6
PREUPLOAD.cfg Normal file
View file

@ -0,0 +1,6 @@
[Builtin Hooks]
gofmt = true
bpfmt = true
[Hook Scripts]
do_not_use_DO_NOT_MERGE = ${REPO_ROOT}/build/soong/scripts/check_do_not_merge.sh ${PREUPLOAD_COMMIT}