Skip to content

Commit

Permalink
Change dash to underscore in generated filenames
Browse files Browse the repository at this point in the history
The generated rust code for my-file.proto is in my_file.rs.
Declared outputs for _proto and _grpc rules should reflect this.
  • Loading branch information
mjduijn authored and Maarten Duijn committed Dec 31, 2018
1 parent 84aa676 commit 79dc373
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proto/toolchain.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

def file_stem(f):
basename = f.rsplit("/", 2)[-1]
return basename.rsplit(".", 2)[0]
return basename.rsplit(".", 2)[0].replace("-", "_")

def rust_generate_proto(
ctx,
Expand Down

0 comments on commit 79dc373

Please sign in to comment.