Skip to content

Commit

Permalink
Fix build for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
Kontinuation committed May 24, 2024
1 parent ce4e300 commit 04de8e2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docker/sedona-spark-jupyterlab/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ get_latest_version_with_suffix() {
METADATA_XML=$(curl -s $METADATA_URL)

# Extract versions from the XML
VERSIONS=$(echo "$METADATA_XML" | grep -oP '(?<=<version>)[^<]+(?=</version>)')
VERSIONS=$(echo "$METADATA_XML" | grep -o '<version>[^<]*</version>' | awk -F'[<>]' '{print $3}')

LATEST_VERSION=""

Expand All @@ -58,7 +58,6 @@ get_latest_version_with_suffix() {
done

if [[ -z $LATEST_VERSION ]]; then
echo "No version found with suffix $SUFFIX"
exit 1
else
echo $LATEST_VERSION
Expand All @@ -73,6 +72,10 @@ fi
GEOTOOLS_WRAPPER_VERSION="${SEDONA_VERSION}-${GEOTOOLS_VERSION}"
if [ "$SEDONA_VERSION" = "latest" ]; then
GEOTOOLS_WRAPPER_VERSION=$(get_latest_version_with_suffix "https://repo1.maven.org/maven2/org/datasyslab/geotools-wrapper/" "$GEOTOOLS_VERSION")
if [ -z "$GEOTOOLS_WRAPPER_VERSION" ]; then
echo "No geotools-wrapper version with suffix $GEOTOOLS_VERSION"
exit 1
fi
echo "Using latest geotools-wrapper version: $GEOTOOLS_WRAPPER_VERSION"

# The compilation must take place outside Docker to avoid unnecessary maven packages
Expand Down

0 comments on commit 04de8e2

Please sign in to comment.