comparison mrjunejune/production_entrypoint.sh @ 268:f7b1188d5fb1

support repo rules Copilot bundle path Match both +_repo_rules2+ and +http_archive+ Copilot CLI repository layouts during deployment and production startup. Co-authored-by: Copilot <[email protected]>
author MrJuneJune <me@mrjunejune.com>
date Fri, 07 Aug 2026 13:02:41 -0700
parents a78f5986011f
children
comparison
equal deleted inserted replaced
267:a78f5986011f 268:f7b1188d5fb1
4 bundle_root="$(cd "$(dirname "$0")" && pwd)" 4 bundle_root="$(cd "$(dirname "$0")" && pwd)"
5 cd "$bundle_root" 5 cd "$bundle_root"
6 6
7 copilot_cli="$( 7 copilot_cli="$(
8 find -L "$bundle_root" -type f \ 8 find -L "$bundle_root" -type f \
9 -path '*/copilot_cli_linux_x86_64/copilot' -print -quit 9 \( \
10 -path '*+_repo_rules2+copilot_cli_linux_x86_64/copilot' -o \
11 -path '*+http_archive+copilot_cli_linux_x86_64/copilot' \
12 \) -print -quit
10 )" 13 )"
11 python_runtime="$( 14 python_runtime="$(
12 find -L "$bundle_root" -type f \ 15 find -L "$bundle_root" -type f \
13 -path '*/rules_python++python+python_3_11_x86_64-unknown-linux-gnu/bin/python3' \ 16 -path '*/rules_python++python+python_3_11_x86_64-unknown-linux-gnu/bin/python3' \
14 -print -quit 17 -print -quit