mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-02-03 01:25:33 -05:00
**What does this PR do? Why is it needed?** This PR adds the `cmd` directory and all it's subcategories to the `hack/gen-logs.sh`. meaning that they will now have a `log.go` file and a `package` field. see the list of added packages below. some of them had different names, which has been added to the `prefixReplacements` map. packages added: "cmd" "cmd/validator/web" "cmd/validator/wallet" "cmd/validator/slashing-protection" "cmd/validator/db" "cmd/validator/accounts" "cmd/prysmctl" "cmd/prysmctl/weaksubjectivity" "cmd/prysmctl/validator" "cmd/prysmctl/testnet" "cmd/prysmctl/p2p" "cmd/prysmctl/db" "cmd/prysmctl/checkpointsync" "cmd/client-stats" "cmd/beacon-chain" "cmd/beacon-chain/storage" "cmd/beacon-chain/jwt" "cmd/beacon-chain/genesis" "cmd/beacon-chain/flags" "cmd/beacon-chain/db"
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.