When building with the release candidate source tarball, we found it fails with the following issue: ``` ERROR: Process exited with status 1: Process exited with status 1 fatal: Not a git repository (or any of the parent directories): .git Failed to run command to check head: git rev-parse --abbrev-ref HEAD INFO: Elapsed time: 431.371s, Critical Path: 143.15s FAILED: Build did NOT complete successfully ```
This is because the `scripts/release/status.sh` script relies on some git information while the source tarball excludes `.git` directory. This PR fixes the building failure issue and will generate the following version information when the heron client is built with a source tar ball. ``` [tw-mbp-nlu incubator-heron-v-0.20.0-incubating-candidate-2]$ ~/.heron/bin/heron version heron.build.git.revision : incubator-heron-v-0.20.0-incubating-candidate-2 heron.build.git.status : Clean heron.build.host : tw-mbp-nlu heron.build.time : Wed Aug 22 17:33:58 PDT 2018 heron.build.timestamp : 1534984438000 heron.build.user : nlu heron.build.version : incubator-heron-v-0.20.0-incubating-candidate-2 ``` [ Full content available at: https://github.com/apache/incubator-heron/pull/3005 ] This message was relayed via gitbox.apache.org for [email protected]
