From d9a6288e00d0d348f50edf7baad5d494e605c5f3 Mon Sep 17 00:00:00 2001 From: matthew-carroll Date: Thu, 30 Aug 2018 16:37:58 -0700 Subject: [PATCH] Add license file patching instructions to README (flutter/engine#6125) Add license file patching instructions to README --- engine/src/flutter/tools/licenses/README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/engine/src/flutter/tools/licenses/README.md b/engine/src/flutter/tools/licenses/README.md index f60cdd5f7f..805c32f8b4 100644 --- a/engine/src/flutter/tools/licenses/README.md +++ b/engine/src/flutter/tools/licenses/README.md @@ -1,3 +1,16 @@ +# Update License Files + +## Apply patch generated by CI +If you're not working on a Linux box then you can't auto-generate license files. A workaround is provided via CI. + +Your build will fail one or more CI checks if your license files are not correct. Open the failing CI check. In the CI output you will find a patch diff that represents the changes that need to be made to your license files. Copy this patch to a temporary patch file wherever you'd like. Then apply the patch to your repo: + +``` +cd flutter/ci/licenses_golden +patch -p2 < my/patch/file +``` + +## Regenerate License Files (Only works on Linux) To update the golden license files, make sure you've rebased your branch to the latest upstream master and then run the following in this directory: ```