[ISSUE-213]: FIX bin/install reads the wrong asdf variables when python3 is a shim

Merged
RU
5d ago
+139-24

Summary by cubic

Fixes bin/install reading the wrong asdf variables when python3 is a shim, which caused the plugin to resolve the wrong install version and path.

  • Converts the bin/install entrypoint from Python to Bash so it delegates to lib/install.py without relying on the python3 shim environment.
  • Renames the consumed variables to ASDF_PHP_INSTALL_VERSION and ASDF_PHP_INSTALL_PATH so they no longer collide with asdf's ASDF_INSTALL_VERSION and ASDF_INSTALL_PATH when python3 is an asdf-managed shim.
  • Adds Bats tests that fake a python3 shim to verify the wrapper passes the PHP variables through and forwards arguments.