buildpacks icon indicating copy to clipboard operation
buildpacks copied to clipboard

Add support for Artifact Registry in yarn

Open yutaroyoshikawa opened this issue 3 years ago • 1 comments

I have a web project that uses yarn v1 for package management hosted on Google App Engine. Newly, I am trying to use private npm packages managed by Artifact Registry in my project. I believe that buildpacks recognizes the .npmrc when building App Engine and automatically generates an access token if the package manager is npm, but yarn does not support automatic generation of this access token, so I would like you to consider supporting this.

yutaroyoshikawa avatar Jun 09 '22 04:06 yutaroyoshikawa

+1 for this. Ran into the same problem. ❤️

AkselAllas avatar Sep 15 '22 13:09 AkselAllas

Makes sense. For additional context, it sounds like a request to extend the capabilities of this feature we introduced in App Engine / Cloud Functions (https://cloud.google.com/appengine/docs/standard/nodejs/specifying-dependencies#private_dependencies_with_artifact_registry) that allows users to access their packages hosted in Artifact Registry without performing additional configuration.

I think yarn would be a good next package to pick up to support Node.js workloads

jama22 avatar Dec 05 '22 18:12 jama22

+1 for this. Ran into the same problem.

savarex avatar Feb 01 '23 11:02 savarex

Enabled AR support for yarn1 -> https://github.com/GoogleCloudPlatform/buildpacks/commit/92cbbdebc4f810d757e2dc44fa9599fca9a7936c

kritkasahni-google avatar Mar 06 '23 17:03 kritkasahni-google

Enabled AR support for yarn2 -> https://github.com/GoogleCloudPlatform/buildpacks/commit/e924f3bfa5ed17e0d755b6df24568e5f6f57eb34

kritkasahni-google avatar Mar 28 '23 21:03 kritkasahni-google

For future reference, docs have also been updated on GCP Buildpacks Node.js page

jama22 avatar May 10 '23 03:05 jama22