assignUser commented on code in PR #13149:
URL: https://github.com/apache/arrow/pull/13149#discussion_r877563936
##########
dev/tasks/macros.jinja:
##########
@@ -221,3 +222,35 @@ on:
cp ${formula} $(brew --repository homebrew/core)/Formula/
done
{% endmacro %}
+
+{%- macro change_r_pkg_version(date = '$(date +%Y%m%d)') -%}
+ - name: Modify version
+ shell: bash
+ run: |
+ cd arrow/r
+ sed -i.bak -E -e \
+ 's/(^Version: [0-9]+\.[0-9]+\.[0-9]+).*$/\1.'"{{ date }}"'/' \
+ DESCRIPTION
+ head DESCRIPTION
+ rm -f DESCRIPTION.bak
+ cp ../dev/tasks/homebrew-formulae/autobrew/apache-arrow.rb
tools/apache-arrow.rb
+
+ # Pin the git commit in the formula to match
+ cd tools
+ sed -i.bak -E -e 's/arrow.git"$/arrow.git", :revision => "'"{{
arrow.head }}"'"/' apache-arrow.rb
+ rm -f apache-arrow.rb.bak
+{% endmacro %}
+
+{%- macro test_r_src_pkg() -%}
+
source("https://raw.githubusercontent.com/apache/arrow/master/ci/etc/rprofile")
Review Comment:
The jobs (`test-linux-binary` and `test-source`) using this macro don't
check out arrow, they only get the source package (and libarrow) via the
nightly repo.
--
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]