When you run kpt pkg get ${PKG_URL}.git/${PKG_PATH} ., it creates a new directory using the name of the package, which is inconsistent with both kpt cfg set . key value and git clone ${REPO_URL}.
I would expect passing the current directory to kpt pkg get to not create a new directory and instead place the package files directly in the specified directory.
When you run
kpt pkg get ${PKG_URL}.git/${PKG_PATH} ., it creates a new directory using the name of the package, which is inconsistent with bothkpt cfg set . key valueandgit clone ${REPO_URL}.I would expect passing the current directory to kpt pkg get to not create a new directory and instead place the package files directly in the specified directory.