mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-04-19 03:01:06 -04:00
**What does this PR do? Why is it needed?** This PR adds the `runtime` package and it's subpackages (except `runtime/logging`) to the log generation process. which means they get an additional `log.go` file with the package path as a field. **Other notes for review** - `runtime/logging` is an exception because adding it to the log gen process messes with the internals of the package, since it's handling the logging formats, etc... - to test this, you can look at the logs emitted from these packages before and after this PR. they will have a field `prefix` before this PR, and no `prefix` after. The most obvious one is the runtime (`registry`) package itself which usually emits a log at the start and end of beacon node. This is as part of my goal to remove all `prefix` logs and move them to the new `package_path` format.
Bash Scripts
This subproject contains useful bash scripts for working with our repository. We have a simple tool that outputs coverage, a simple tool to check for gazelle requirements, update Go protobuf generated files, visibility rules tools for Bazel packages, and more.
update-go-pbs.sh
This script generates the *.pb.go files from the *.proto files.
After running update-go-pbs.sh keep only the *.pb.go for the protos that have changed before checking in.
Note: the generated files may not have imports correctly linted and will need to be fixed to remote associated errors.