Skip to content

Commit 8fab799

Browse files
committed
[SPARK-22167][R][BUILD] sparkr packaging issue allow zinc
## What changes were proposed in this pull request? When zinc is running the pwd might be in the root of the project. A quick solution to this is to not go a level up incase we are in the root rather than root/core/. If we are in the root everything works fine, if we are in core add a script which goes and runs the level up ## How was this patch tested? set -x in the SparkR install scripts. Author: Holden Karau <[email protected]> Closes apache#19402 from holdenk/SPARK-22167-sparkr-packaging-issue-allow-zinc.
1 parent 405c0e9 commit 8fab799

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

R/install-dev.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
set -o pipefail
3030
set -e
31+
set -x
3132

3233
FWDIR="$(cd "`dirname "${BASH_SOURCE[0]}"`"; pwd)"
3334
LIB_DIR="$FWDIR/lib"

core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@
499499
</execution>
500500
</executions>
501501
<configuration>
502-
<executable>..${file.separator}R${file.separator}install-dev${script.extension}</executable>
502+
<executable>${project.basedir}${file.separator}..${file.separator}R${file.separator}install-dev${script.extension}</executable>
503503
</configuration>
504504
</plugin>
505505
</plugins>

0 commit comments

Comments
 (0)