You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/12/17 21:28:39 UTC

[GitHub] [arrow] kou commented on pull request #11987: ARROW-15147: [CI][C++][Gandiva] Fix broken nigthly builds related to boost dependencies

kou commented on pull request #11987:
URL: https://github.com/apache/arrow/pull/11987#issuecomment-997041816


   It's related to #11974.
   It seems that we need all Git history to build `.jar`.
   
   How about this?
   
   ```diff
   diff --git a/dev/tasks/java-jars/github.yml b/dev/tasks/java-jars/github.yml
   index 221f98514..dc61eab2f 100644
   --- a/dev/tasks/java-jars/github.yml
   +++ b/dev/tasks/java-jars/github.yml
   @@ -80,7 +80,7 @@ jobs:
        runs-on: macos-latest
        needs: [build-cpp-macos, build-cpp-ubuntu]
        steps:
   -      {{ macros.github_checkout_arrow()|indent }}
   +      {{ macros.github_checkout_arrow(fetch_depth=0)|indent }}
          - name: Download Linux C++ Libraries
            uses: actions/download-artifact@v2
            with:
   diff --git a/dev/tasks/macros.jinja b/dev/tasks/macros.jinja
   index d8f2816ee..11bd6b090 100644
   --- a/dev/tasks/macros.jinja
   +++ b/dev/tasks/macros.jinja
   @@ -25,13 +25,14 @@ on:
          - "*-github-*"
    {% endmacro %}
    
   -{%- macro github_checkout_arrow() -%}
   +{%- macro github_checkout_arrow(fetch_depth=1) -%}
      - name: Checkout Arrow
        uses: actions/checkout@v2
        with:
   -      repository: {{ arrow.github_repo }}
   -      ref: {{ arrow.head }}
   +      fetch-depth: {{ fetch_depth }}
          path: arrow
   +      ref: {{ arrow.head }}
   +      repository: {{ arrow.github_repo }}
          submodules: recursive
    {% endmacro %}
    ```


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org