Skip to content

Create new "dartfunctions" experiment - #10304

Merged
wandamora merged 3 commits into
mainfrom
wm-add-dartfunctions-experiment
Apr 10, 2026
Merged

wandamora merged 3 commits into
mainfrom
wm-add-dartfunctions-experiment

Conversation

@wandamora

@wandamora wandamora commented Apr 9, 2026 •

Copy link
Copy Markdown
Contributor

This creates a new experiment to enable Dart for Cloud Functions, and separates out some of the dart-specific features gated by the functionsrunapionly experiment.

Tested by:

  • firebase init functions (dartfunctions disabled), no dart option.
  • firebase init functions (dartfunctions enabled), shows dart option.
  • firebase deploy --only functions (with dart code, but disabled dartfunctions). Observed Error: Cannot use Dart functions because the experiment dartfunctions is not enabled. To enable dartfunctions run firebase experiments:enable dartfunctions
  • firebase deploy --only functions (with dartfucntions enabled and dart code using https://paste.googleplex.com/5448076111249408 as the pubspec.yaml), successful deployment.

In a Node project, ran
firebase deploy --only functions with dartfunctions enabled and deployment was successful. Did not see the same issue as #10252

@wandamora wandamora linked an issue Apr 9, 2026 that may be closed by this pull request

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a new dartfunctions experiment flag to manage the enablement of Dart functions. The experiment check has been refactored to occur within the dart.tryCreateDelegate function, and the language setup now utilizes this new flag. Feedback suggests confirming the intended public visibility of the dartfunctions experiment, as setting public: false means it won't appear in firebase experiments:list without specific flags.

@wandamora
wandamora requested a review from inlined April 9, 2026 19:45
@wandamora wandamora linked an issue Apr 9, 2026 that may be closed by this pull request
This creates a new experiment to enable Dart for Cloud Functions, and
separates out some of the dart-specific features gated by the
functionsrunapionly experiment.
Should be using the dartfunctions experiment now
@wandamora
wandamora force-pushed the wm-add-dartfunctions-experiment branch from b240659 to d18ee15 Compare April 10, 2026 15:19
@wandamora
wandamora merged commit 1c9afbe into main Apr 10, 2026
93 of 99 checks passed
@wandamora
wandamora deleted the wm-add-dartfunctions-experiment branch April 10, 2026 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rename functionsrunapionly experiment flag functions deployment gets stuck when functionsrunapionly is enabled

2 participants