Skip to content

Commit

Permalink
Add license file patching instructions to README (flutter#6125)
Browse files Browse the repository at this point in the history
Add license file patching instructions to README
  • Loading branch information
matthew-carroll authored Aug 30, 2018
1 parent 51d4be7 commit e7767ae
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tools/licenses/README.md
Original file line number Diff line number Diff line change
@@ -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:

```
Expand Down

0 comments on commit e7767ae

Please sign in to comment.