mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-06 11:42:14 +00:00
Add hack/update-godep-licenses.sh to generate Godeps/LICENSES.md
- Add Godeps/LICENSES.md - Add verify-godep-licenses to verify that Godeps/LICENSES.md is up to date - Trigger verify-godep-licenses in the pre-commit hook only if the Godeps dir has changed - Exclude verify-godep-licenses in verify-all - Add verify-godep-licenses to make verify (used by travis) - Add verify-godep-licenses to shippable - Update dev docs to mention update-godep-licenses
This commit is contained in:
@@ -219,7 +219,7 @@ _If `go get -u path/to/dependency` fails with compilation errors, instead try `g
|
||||
to fetch the dependencies without compiling them. This can happen when updating the cadvisor dependency._
|
||||
|
||||
|
||||
5) Before sending your PR, it's a good idea to sanity check that your Godeps.json file is ok by running hack/verify-godeps.sh
|
||||
5) Before sending your PR, it's a good idea to sanity check that your Godeps.json file is ok by running `hack/verify-godeps.sh`
|
||||
|
||||
_If hack/verify-godeps.sh fails after a `godep update`, it is possible that a transitive dependency was added or removed but not
|
||||
updated by godeps. It then may be necessary to perform a `godep save ./...` to pick up the transitive dependency changes._
|
||||
@@ -228,6 +228,10 @@ It is sometimes expedient to manually fix the /Godeps/godeps.json file to minimi
|
||||
|
||||
Please send dependency updates in separate commits within your PR, for easier reviewing.
|
||||
|
||||
6) If you updated the Godeps, please also update `Godeps/LICENSES.md` by running `hack/update-godep-licenses.sh`.
|
||||
|
||||
_If Godep does not automatically vendor the proper license file for a new dependency, be sure to add an exception entry to `hack/update-godep-licenses.sh`._
|
||||
|
||||
## Unit tests
|
||||
|
||||
```sh
|
||||
|
Reference in New Issue
Block a user