-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Google Cloud Functions - private package in private repo? #2193
Comments
@techieshark have you tried configuring your
(I presume that the format of that file doesn't really differ between GitHub's registry and NPM's.) |
@ace-n thanks for the response. Yes my .npmrc which is included in the deployed source is:
Unfortunately that doesn't work for me. The full details of what I've tried and how it fails are shown here: GoogleCloudPlatform/functions-framework-nodejs#258 (comment) I've since then found this issue in the Google Issue Tracker, and the fact that it is still open makes me suspect that this is simply not something that the cloud functions team has made to work yet (if so, perhaps that could be documented?) |
@techieshark thanks for the follow-up. I've submitted a request internally to document this behavior. cc @bcoe as FYI |
Documentation updated. 🙂 (It may take a few days for the update to be publicly visible.) Additionally, I'll pass this feedback along to the product team - in case they want to add it to the roadmap. (Unfortunately I can't say if or when that will happen, though.) |
Hi @ace-n - thanks or the super quick action! But... my apologies, but I may have been mistaken. 😬 After following up on a tip from @grant I was able to dig into this issue further and it seemed like the module was installed, but it was just a misleading log entry that made me believe it wasn't. I hope the additional info in the comment below is helpful to you and/or others: GoogleCloudPlatform/functions-framework-nodejs#258 (comment) |
@techieshark thanks for the follow-up, and I'm glad you were able to figure it out! Given the issue you linked above (and the fact that I already updated the docs 🙂), I think more investigation is necessary. @bcoe is this something you can test out + report back on? (I don't have a private NPM repo handy.) |
These steps work for me, is there anything that could be updated accordingly in the samples? Using a Private Package in Cloud Function
|
Is there an example showing how to deploy a cloud function which makes use of a private modules (from a private code repo, hosted as part of GitHub package repository)?
This is somewhat similar to #300 but should probably be reopened since that it has been about four years and we now know that using private modules is possible but that example only covers NPM package repo, not GitHub.
Thanks!
The text was updated successfully, but these errors were encountered: