Skip to content
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 an issue where emulator:exec would not work without a project ID #3684

Merged
merged 4 commits into from
Aug 13, 2021

Conversation

joehan
Copy link
Contributor

@joehan joehan commented Aug 13, 2021

Description

Fix an issue where emulator:exec would not work without a project ID. Fixes #3681

Scenarios Tested

I'm able to run firebase emulators:exec test.js without the error described in #3681, as long as the functions emulator is not running. This matches the behavior from <9.16.0

@google-cla google-cla bot added the cla: yes Manual indication that this has passed CLA. label Aug 13, 2021
@@ -330,7 +329,7 @@ export async function startAll(options: Options, showUI: boolean = true): Promis
const hubLogger = EmulatorLogger.forEmulator(Emulators.HUB);
hubLogger.logLabeled("BULLET", "emulators", `Starting emulators: ${targets.join(", ")}`);

const projectId: string = needProjectId(options);
const projectId: string = getProjectId(options) || ""; // TODO: Next breaking change, consider making this fall back to demo project.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should strongly consider giving this a sane default, but I'm afraid to change the behavior at all given our recent run ins with Hyrum's law.

@joehan joehan requested a review from mbleigh August 13, 2021 23:06
@joehan joehan merged commit 3d5b8cd into master Aug 13, 2021
@joehan joehan deleted the jh-fix-exec branch August 13, 2021 23:23
devpeerapong pushed a commit to devpeerapong/firebase-tools that referenced this pull request Dec 14, 2021
…irebase#3684)

* fix issue where the emulator:exec would not work without a project id

* add todo

* changelog!

* formats
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Manual indication that this has passed CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

firebase emulators:exec failing in 9.16.1, 9.16.2, 9.16.3 and 9.16.4
2 participants