summaryrefslogtreecommitdiff
path: root/external/julia_depot/registries/General/.ci/instantiate.sh
diff options
context:
space:
mode:
authorYurenHao0426 <blackhao0426@gmail.com>2026-06-29 12:15:51 -0500
committerYurenHao0426 <blackhao0426@gmail.com>2026-06-29 12:15:51 -0500
commita6ec4288a2232988b130b2f00bb2565f81706966 (patch)
tree1bb86e7f0b899b823b9e7fdf383e832d30a181e0 /external/julia_depot/registries/General/.ci/instantiate.sh
Recursive reasoning dynamics: analysis pipeline, paper drafts, toy models
Failure=more-chaotic (task-general under validity labeling) reduces to convergence/completeness detection; mechanism (transient chaos vs multistability vs input-induced) under investigation. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Diffstat (limited to 'external/julia_depot/registries/General/.ci/instantiate.sh')
-rwxr-xr-xexternal/julia_depot/registries/General/.ci/instantiate.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/external/julia_depot/registries/General/.ci/instantiate.sh b/external/julia_depot/registries/General/.ci/instantiate.sh
new file mode 100755
index 0000000..ce636ec
--- /dev/null
+++ b/external/julia_depot/registries/General/.ci/instantiate.sh
@@ -0,0 +1,24 @@
+#!/usr/bin/env bash
+
+# This script runs `Pkg.instantiate()` inside a bounded retry loop.
+
+dir="${1:-}"
+
+if [ -z "$dir" ]; then
+ echo "Usage: $0 <julia-project-dir>" >&2
+ exit 2
+fi
+if [ ! -d "$dir" ]; then
+ echo "Error: '$dir' is not a directory." >&2
+ exit 2
+fi
+
+try_count=0
+while [ "$try_count" -lt 9 ]; do
+ julia --color=yes --project="$dir" -e 'import Pkg; Pkg.instantiate()'
+ if [ $? -eq 0 ]; then exit 0; fi
+ try_count=$((try_count + 1))
+ sleep 20
+done
+
+exit 1