-
Notifications
You must be signed in to change notification settings - Fork 976
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
Hosting deploy wrongly assumes all-or-none webframeworks #8168
Comments
fivecar
added a commit
to fivecar/firebase-tools
that referenced
this issue
Feb 5, 2025
In deployments where `--only hosting:boo` is used, enforce webframeworks enablement only when the target actually uses webframeworks.
Thanks for the detailed report and for submitting a PR @fivecar! I’m able to reproduce the error you mentioned. I do think that this behavior can be improved by only asserting Let me ask someone from our engineering team to take a look into this. |
leoortizz
added a commit
that referenced
this issue
Mar 7, 2025
…8295) * Revert "fix: #8168 - enforce webframeworks only when needed (#8169)" This reverts commit 4621328. * prepare webframeworks only if some is being deployed fixes #8274 * handle only properly * restore types improvements * more tests * cleanup * changelog * enforce return type * remove unnecessary type cast
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment info
firebase-tools:
13.30.0
Platform:
Ubuntu
Test case
hosting
targets: one using webframeworks and one normal (i.e. "target: framey" withsource
and "target: classic" withpublic
).firebase deploy --only hosting:classic
Steps to reproduce
(same as test case above)
Expected behavior
Deploy of "classic" target to succeed. Of course a deploy of
hosting:framey
should fail... but I wouldn't expectclassic
to fail because it doesn't use webframeworks.Actual behavior
Deployment errors out with "Cannot deploy a web framework from source because the experiment webframeworks is not enabled. To enable webframeworks run firebase experiments:enable webframeworks."
I suspect this line is the problem. The tools shouldn't be asserting
webframeworks
whenever any target requires it... it should only be asserting it for the specific target if it uses it.The text was updated successfully, but these errors were encountered: