Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tool: add a tool for updating bundled Apache Arrow #1250

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
28 changes: 28 additions & 0 deletions vendor/update_apache_arrow.rb
@@ -0,0 +1,28 @@
#!/bin/ruby

require 'open-uri'
require 'yaml'

def apache_arrow_source_dir
"apache-arrow-source"
end

def detect_latest_release_version
version_yaml =
YAML.load(
URI.parse(
"https://raw.githubusercontent.com/apache/arrow-site/master/_data/versions.yml"
).read
)
version_yaml["current"]["number"]
end

def update_bundled_apache_arrow
Dir.chdir(apache_arrow_source_dir) do
system("git", "fetch", "--all", "--prune", "--tags", "--force")
system("git", "checkout", "apache-arrow-#{detect_latest_release_version}")
end
system("git", "add", "#{apache_arrow_source_dir}")
end

update_bundled_apache_arrow