While deploying a gen2 Cloud Function the following cloud build is unable to fetch any python packages (public and/or private).
The cloud build service account that gets used has the necessary Artifact Registry roles (Writer, Reader).
Both projects are also a part of a Shared VPC and the requirements.txt file contains
"--index-url https://europe-west1-python.pkg.dev/<other-project-name>/virtual-pypi/simple".
```
ERROR: Could not find a version that satisfies the requirement pydantic==2.* (from versions: none)
```
And other private packages also fail.
Any suggestions are welcomed!