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
Fix Hosting deploys #5077
Fix Hosting deploys #5077
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious regression. I'm wondering how this was avoided in the original code (maybe it already did the respective check)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Codecov ReportBase: 55.75% // Head: 55.75% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #5077 +/- ##
==========================================
- Coverage 55.75% 55.75% -0.01%
==========================================
Files 305 305
Lines 20513 20522 +9
Branches 4139 4142 +3
==========================================
+ Hits 11437 11442 +5
- Misses 8093 8097 +4
Partials 983 983
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
* TODO: this currently lists remote backends (functions) and attemtps to validate them. | ||
* We currently catch 403 issues and handle them, but it's probably not the best solution | ||
* to have a required permission in functions when a deploy may "only" be to Hosting. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: convert this to an issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
* fix path import * adds check for permission issues when resolving Hosting configs
Thanks @bkendall! Any ETA on the version release? I'm using the Firebase GH action, which has been broken since this morning. Though FirebaseExtended/action-hosting-deploy#242 could also be a solution. |
xref: firebase/firebase-tools#5077 Signed-off-by: Tamal Saha <tamal@appscode.com>
xref: firebase/firebase-tools#5077 Signed-off-by: Tamal Saha <tamal@appscode.com>
Description
TypeError: Cannot read properties of undefined (reading 'join')
An import that was
import path from "path"
wasn't working correctly.Error: HTTP Error: 403, Permission 'cloudfunctions.functions.list' denied
deploying HostingLogic was added to check for backends but no assertion was made that the callee would have permissions. Added a check to make sure that (1) we had rewrites we should try to resolve and (b) catch permissions issues and silence them.
Fixes #5071