File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed
_tools/ruby_h_to_go/lib/ruby_h_to_go Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ def write_enum_definitions_to_go_file
102102
103103 # Clean all generated files in dist/
104104 def clean_generated_files
105- FileUtils . rm_f ( Dir . glob ( File . join ( dist_dir , "*_generated.go" ) ) )
105+ FileUtils . rm_f ( Dir . glob ( File . join ( dist_dir , "*_ #{ GoUtil . ruby_minor_version_build_tag } _generated.go" ) ) )
106106 end
107107
108108 def copy_go_files
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ def initialize(definition:)
1515 # Write definition as go file
1616 # @param [String] dist_dir
1717 def write_go_file ( dist_dir )
18- go_file_path = File . join ( dist_dir , "enum_generated .go" )
18+ go_file_path = File . join ( dist_dir , "enum_ #{ GoUtil . ruby_minor_version_build_tag } _generated .go" )
1919
2020 GoUtil . generate_initial_go_file ( go_file_path )
2121
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ def args
2525 # Write definition as go file
2626 # @param [String] dist_dir
2727 def write_go_file ( dist_dir )
28- go_file_path = File . join ( dist_dir , "function_generated .go" )
28+ go_file_path = File . join ( dist_dir , "function_ #{ GoUtil . ruby_minor_version_build_tag } _generated .go" )
2929
3030 GoUtil . generate_initial_go_file ( go_file_path )
3131
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ def initialize(definition:)
1515 # Write definition as go file
1616 # @param [String] dist_dir
1717 def write_go_file ( dist_dir )
18- go_file_path = File . join ( dist_dir , "struct_generated .go" )
18+ go_file_path = File . join ( dist_dir , "struct_ #{ GoUtil . ruby_minor_version_build_tag } _generated .go" )
1919
2020 GoUtil . generate_initial_go_file ( go_file_path )
2121
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ def initialize(definition:)
1515 # Write definition as go file
1616 # @param [String] dist_dir
1717 def write_go_file ( dist_dir )
18- go_file_path = File . join ( dist_dir , "type_generated .go" )
18+ go_file_path = File . join ( dist_dir , "type_ #{ GoUtil . ruby_minor_version_build_tag } _generated .go" )
1919
2020 GoUtil . generate_initial_go_file ( go_file_path )
2121
You can’t perform that action at this time.
0 commit comments