Skip to content

Commit

Permalink
build(proto): stop generating golang code
Browse files Browse the repository at this point in the history
We originally added the golang codegen to provide first-class support to
downstream integrators. This is no longer necessary, as those same
integrators, e.g. Strangelove, are performing their own codegen in the
respective repos. These codepaths in the Penumbra monorepo are unused
and largely unmaintained, so I'm culling them.

Refs #2184. Moots and therefore closes #2731.
  • Loading branch information
conorsch committed Feb 6, 2024
1 parent 0ef2771 commit 33159ea
Show file tree
Hide file tree
Showing 30 changed files with 1 addition and 42,865 deletions.
Binary file modified crates/cnidarium/src/gen/proto_descriptor.bin.no_lfs
Binary file not shown.
Binary file modified crates/proto/src/gen/proto_descriptor.bin.no_lfs
Binary file not shown.
6 changes: 1 addition & 5 deletions deployments/scripts/protobuf-codegen
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repo_root="$(git rev-parse --show-toplevel)"
# Purge the output dirs, to ensure that the codegen is complete:
# if upstream removed files, we want them removed from all outputs, too.
echo "Cleaning output dirs..."
for d in proto/rust-vendored proto/go crates/proto/src/gen ; do
for d in proto/rust-vendored crates/proto/src/gen ; do
rm -r "${repo_root}/${d}/"
mkdir -p "${repo_root}/${d}/"
done
Expand All @@ -22,10 +22,6 @@ buf export penumbra --output rust-vendored/
# those directly in this repo, and don't need to duplicate them as output.
rm -rf rust-vendored/penumbra/

echo "Generating golang code..."
buf generate
popd

echo "Generating rust code..."
pushd "${repo_root}/tools/proto-compiler"
cargo run
Expand Down
Loading

0 comments on commit 33159ea

Please sign in to comment.