mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-02-04 02:52:09 +00:00
* Add changelog and docs for v1.5 release Signed-off-by: Nolan Brubaker <brubakern@vmware.com> * Fix markdown indentation Signed-off-by: Nolan Brubaker <brubakern@vmware.com> * Fix URLs with patch version Signed-off-by: Nolan Brubaker <brubakern@vmware.com> * Fix example link Signed-off-by: Nolan Brubaker <brubakern@vmware.com>
47 lines
1.3 KiB
Markdown
47 lines
1.3 KiB
Markdown
---
|
|
title: "Development "
|
|
layout: docs
|
|
---
|
|
|
|
## Update generated files
|
|
|
|
Run `make update` to regenerate files if you make the following changes:
|
|
|
|
* Add/edit/remove command line flags and/or their help text
|
|
* Add/edit/remove commands or subcommands
|
|
* Add new API types
|
|
* Add/edit/remove plugin protobuf message or service definitions
|
|
|
|
The following files are automatically generated from the source code:
|
|
|
|
* The clientset
|
|
* Listers
|
|
* Shared informers
|
|
* Documentation
|
|
* Protobuf/gRPC types
|
|
|
|
You can run `make verify` to ensure that all generated files (clientset, listers, shared informers, docs) are up to date.
|
|
|
|
## Linting
|
|
|
|
You can run `make lint` which executes golangci-lint inside the build image, or `make local-lint` which executes outside of the build image.
|
|
Both `make lint` and `make local-lint` will only run the linter against changes.
|
|
|
|
Use `lint-all` to run the linter against the entire code base.
|
|
|
|
The default linters are defined in the `Makefile` via the `LINTERS` variable.
|
|
|
|
You can also override the default list of linters by running the command
|
|
|
|
`$ make lint LINTERS=gosec`
|
|
|
|
## Test
|
|
|
|
To run unit tests, use `make test`.
|
|
|
|
## Vendor dependencies
|
|
|
|
If you need to add or update the vendored dependencies, see [Vendoring dependencies][11].
|
|
|
|
[11]: vendoring-dependencies.md
|