-
Notifications
You must be signed in to change notification settings - Fork 971
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: #8168 - enforce webframeworks only when needed #8169
base: master
Are you sure you want to change the base?
Conversation
In deployments where `--only hosting:boo` is used, enforce webframeworks enablement only when the target actually uses webframeworks.
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
src/deploy/index.ts
Outdated
(!options.only.includes("hosting:") || | ||
new RegExp(`\\bhosting:${it.target}\\b`).exec(options.only)), |
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.
I understand this is lame, and reflects my lack of understanding of all the config flags/etc and how best to parse this. But the point is to make this logic, "Enforce webframeworks if either all sites need to be deployed, or if the site being deployed itself has source
").
@fivecar, already shared this PR with our engineering team when I raised the issue. Thanks again for opening up this PR! |
Description
In deployments where
--only hosting:boo
is used, enforce webframeworks enablement only when the target actually uses webframeworks. This PR:prepareFrameworksIfNeeded
to make testing easier--only
and matches webframeworks requirement only for webframeworks sitesFixes #8168
Scenarios Tested
Created a firebase.json with one webframeworks site and one normal site.
--only hosting:frameworkysite
, and verified error message--only hosting:nonframeworksite
and verified successAnd ran all unit tests clean.