Add license file patching instructions to README (#6125)

Add license file patching instructions to README
This commit is contained in:
matthew-carroll 2018-08-30 16:37:58 -07:00 committed by GitHub
parent 51d4be7745
commit e7767ae9b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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:
```