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
102
102
103
103
# Clean all generated files in dist/
104
104
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" ) ) )
106
106
end
107
107
108
108
def copy_go_files
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ def initialize(definition:)
15
15
# Write definition as go file
16
16
# @param [String] dist_dir
17
17
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" )
19
19
20
20
GoUtil . generate_initial_go_file ( go_file_path )
21
21
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ def args
25
25
# Write definition as go file
26
26
# @param [String] dist_dir
27
27
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" )
29
29
30
30
GoUtil . generate_initial_go_file ( go_file_path )
31
31
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ def initialize(definition:)
15
15
# Write definition as go file
16
16
# @param [String] dist_dir
17
17
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" )
19
19
20
20
GoUtil . generate_initial_go_file ( go_file_path )
21
21
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ def initialize(definition:)
15
15
# Write definition as go file
16
16
# @param [String] dist_dir
17
17
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" )
19
19
20
20
GoUtil . generate_initial_go_file ( go_file_path )
21
21
You can’t perform that action at this time.
0 commit comments