tisonkun commented on code in PR #6627:
URL: https://github.com/apache/opendal/pull/6627#discussion_r2412112378
##########
bindings/ruby/Rakefile:
##########
@@ -93,27 +93,14 @@ task :version do
print GEMSPEC.version
end
-desc "Resolve symlinks in core directory for gem packaging" # Read more in
`.release-ruby.yml`
-task :resolve_symlinks do
- puts "Changing symlinks in core directory to actual files for packaging..."
- Dir.chdir("core") do # a symbolic link to OpenDAL core for packaging
- Dir.glob("**/*", File::FNM_DOTMATCH).each do |file|
- next unless File.symlink?(file)
-
- link_target = File.readlink(file)
- resolved_path = File.expand_path(link_target, File.dirname(file))
-
- if File.exist?(resolved_path)
- puts "Resolving symlink: #{file} -> #{link_target}"
- File.delete(file)
- FileUtils.cp(resolved_path, file)
- end
- end
- end
+desc "Copy the core directory for gem packaging" # Read more in
`./.github/workflows/release-ruby.yml`
+task :copy_core do
+ puts "Copy the core directory for packaging..."
+ FileUtils.cp_r('../../core', '.')
Review Comment:
Perhaps add to `.gitigonre` and delete every time before copy. But let's
first verify a happy path can work.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]