mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Add license file patching instructions to README (#6125)
Add license file patching instructions to README
This commit is contained in:
parent
51d4be7745
commit
e7767ae9b7
@ -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:
|
||||
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user