Merge branch 'main' into feat/pdm-support

This commit is contained in:
Chris Ingram 2026-05-15 08:46:06 +01:00 committed by GitHub
commit bf2d37d114
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 113 additions and 29 deletions

View file

@ -113,8 +113,10 @@ function wrapSafeChainCommand() {
fi
if command -v safe-chain > /dev/null 2>&1; then
# If the aikido command is available, just run it with the provided arguments
safe-chain "$@"
# If the aikido command is available, just run it with the provided arguments.
# Unset PKG_EXECPATH so the yao-pkg bootstrap inside the safe-chain binary doesn't
# mistake argv[1] for a script path and try to resolve it against cwd.
(unset PKG_EXECPATH; safe-chain "$@")
else
# If the aikido command is not available, print a warning and run the original command
printSafeChainWarning "$original_cmd"