Skip to content

Commit aed0c41

Browse files
committed
Use proto.encode_text instead of struct.to_proto
1 parent fddb299 commit aed0c41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

haskell/private/actions/info.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def write_proto_file(hs, output_name, proto_type, content):
3131
"""
3232
proto_txt = hs.actions.declare_file(output_name + ".txt")
3333
proto_pb = hs.actions.declare_file(output_name + ".pb")
34-
hs.actions.write(output = proto_txt, content = content.to_proto())
34+
hs.actions.write(output = proto_txt, content = proto.encode_text(content))
3535

3636
protoc = hs.toolchain.protoc
3737
rule_info_protos = hs.toolchain.rule_info_proto[ProtoInfo].direct_sources

0 commit comments

Comments
 (0)