Skip to content

Commit cede6ec

Browse files
committed
Fix copy_go_files
1 parent 719be80 commit cede6ec

File tree

1 file changed

+4
-3
lines changed
  • _tools/ruby_h_to_go/lib/ruby_h_to_go

1 file changed

+4
-3
lines changed

_tools/ruby_h_to_go/lib/ruby_h_to_go/cli.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,15 @@ def clean_generated_files
8383
end
8484

8585
def copy_go_files
86-
# FIXME: This is a temporary process until all possible contents of `ruby/*.go` are replaced
87-
# with automatically generated files. (Currently output to `dist/` as it is incomplete)
86+
src_dir = File.expand_path("../../../../ruby", __dir__)
87+
return if src_dir == dist_dir
88+
8889
%w[
8990
c_types.go
9091
types.go
9192
wrapper.go
9293
].each do |file|
93-
FileUtils.cp(File.join(__dir__, "..", "..", "..", "..", "ruby", file), dist_dir)
94+
FileUtils.cp(File.join(src_dir, file), dist_dir)
9495
end
9596
end
9697

0 commit comments

Comments
 (0)