-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #184 from permitio/omer/per-10741-fix-unhandled-nu…
…ll-value-in-debug-key-response Fix unhandled issue with debug null and improve local dev
- Loading branch information
Showing
2 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,14 @@ else | |
echo "permit-opa directory already exists. Skipping clone operation." | ||
fi | ||
|
||
# Check if datasync directory already exists | ||
if [ ! -d "../datasync" ]; then | ||
# Clone the permit-opa repository into the parent directory if it doesn't exist | ||
git clone [email protected]:permitio/datasync.git ../datasync | ||
else | ||
echo "datasync directory already exists. Skipping clone operation." | ||
fi | ||
|
||
# Conditionally execute the custom OPA tarball creation section based on the value of PDP_VANILLA | ||
if [ "$PDP_VANILLA" != "true" ]; then | ||
# Custom OPA tarball creation section | ||
|
@@ -24,6 +32,13 @@ if [ "$PDP_VANILLA" != "true" ]; then | |
cd "../permit-opa" | ||
find * -name '*go*' -print0 | xargs -0 tar -czf "$build_root"/custom/custom_opa.tar.gz --exclude '.*' | ||
cd "$build_root" | ||
# Datasync tarball creation section | ||
rm -rf datasync | ||
mkdir datasync | ||
build_root="$PWD" | ||
cd "../datasync" | ||
find * -name '*go*' -print0 | xargs -0 tar -czf "$build_root"/datasync/datasync.tar.gz --exclude '.*' | ||
cd "$build_root" | ||
else | ||
echo "Skipping custom OPA tarball creation for pdp-vanilla environment." | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters