From 695bb6ca870265963306dfe6272fc44b17adf59a Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Fri, 15 Nov 2019 02:56:55 +0200 Subject: [PATCH] build: fix build scripts on macOS (#33843) In #33823, `scripts/package-builds.sh` (which is used by both `build-packages-dist.sh` and `build-ivy-npm-packages.sh`) was updated to use `realpath`. It turns out that `realpath` does not exist on macOS, so the build scripts do not work there. This commit fixes it by switching from `realpath $(pwd)/..` to `dirname $(pwd)`, which does practically the same thing (in this situation) and works on macOS as well. PR Close #33843 --- scripts/package-builder.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/package-builder.sh b/scripts/package-builder.sh index b20a1100d2..48e93ea064 100755 --- a/scripts/package-builder.sh +++ b/scripts/package-builder.sh @@ -16,7 +16,7 @@ set -u -e -o pipefail cd "$(dirname "$0")" # basedir is the workspace root -readonly base_dir="$(realpath "$(pwd)/..")" +readonly base_dir="$(dirname "$(pwd)")" readonly bazel_bin="$(yarn run -s bazel info bazel-bin)" readonly script_path="$0"