Skip to content

Commit

Permalink
Update proto3 codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
TristanCacqueray committed Jan 7, 2025
1 parent bdd2316 commit 7532e91
Show file tree
Hide file tree
Showing 9 changed files with 13,064 additions and 14,239 deletions.
2 changes: 2 additions & 0 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ codegen-haskell:
compile-proto-file --includeDir /usr/include --includeDir schemas/ --includeDir ${PROTOBUF_SRC} --proto ${pb} --out codegen/; \
done
find codegen/Monocle -type f -name "*.hs" -exec sed -i {} -e '1i{-# LANGUAGE NoGeneralisedNewtypeDeriving #-}' \;
# Fix for: https://github.com/awakesecurity/proto3-suite/pull/262#issuecomment-2576179003
find codegen/Monocle -type f -name "*.hs" -exec sed -i {} -e 's/HsProtobuf.String Hs.Text/(HsProtobuf.String Hs.Text)/' \;
fourmolu -i codegen/Monocle

# Generate javascript data type from protobuf
Expand Down
Loading

0 comments on commit 7532e91

Please sign in to comment.